Sha256: 6a6dc5a808cc52727d9a2dd6a3c5f54e401d334075babe23c35b552c3d5287c2

Contents?: true

Size: 627 Bytes

Versions: 38

Compression:

Stored size: 627 Bytes

Contents

module Fog
  module Rackspace
    module Servers
      class Real

        # List all flavors (IDs and names only)
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'id'<~Integer> - Id of the flavor
        #     * 'name'<~String> - Name of the flavor
        def list_flavors
          request(
            :expects  => [200, 203],
            :method   => 'GET',
            :path     => 'flavors.json'
          )
        end

      end

      class Mock

        def list_flavors
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
fog-0.2.30 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.28 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.27 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.26 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.25 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.24 lib/fog/rackspace/requests/servers/list_flavors.rb
tecnh-fog-0.2.23.vpc lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.23 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.22 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.21 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.20 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.19 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.18 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.17 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.16 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.15 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.14 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.13 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.12 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.2.11 lib/fog/rackspace/requests/servers/list_flavors.rb