# File lib/fog/openstack/requests/compute/create_flavor.rb, line 47
        def create_flavor(attributes)
          response = Excon::Response.new
          response.status = 200
          response.headers = {
            "X-Compute-Request-Id" => "req-fdc6f99e-55a2-4ab1-8904-0892753828cf",
            "Content-Type" => "application/json",
            "Content-Length" => "356",
            "Date" => Date.new
          }
          response.body = {
            "flavor" => {
              "vcpus" => attributes[:vcpus],
              "disk" => attributes[:disk],
              "name" => attributes[:name],
              "links" => [
                {
                  "href" => "http://192.168.27.100:8774/v1.1/6733e93c5f5c4eb1bcabc6902ba208d6/flavors/11",
                  "rel" => "self"
                },
                {
                  "href" => "http://192.168.27.100:8774/6733e93c5f5c4eb1bcabc6902ba208d6/flavors/11",
                  "rel" => "bookmark"
                }
              ],
              "rxtx_factor" => attributes[:rxtx_factor] || 1.0,
              "OS-FLV-EXT-DATA:ephemeral" => attributes[:ephemeral] || 0,
              "os-flavor-access:is_public" => attributes[:is_public] || false,
              "OS-FLV-DISABLED:disabled" => attributes[:disabled] || false,
              "ram" => attributes[:ram],
              "id" => "11",
              "swap" => attributes[:swap] || ""
            }
          }
          response
        end