Sha256: b6806c7b6fca2f92da341e74594af170d7158c89a5aa20de443dcebe6517b0c6

Contents?: true

Size: 613 Bytes

Versions: 26

Compression:

Stored size: 613 Bytes

Contents

module Fog
  module Brightbox
    class Compute
      class Real

        def get_server_type(identifier, options = {})
          return nil if identifier.nil? || identifier == ""
          request(
            :expects  => [200],
            :method   => 'GET',
            :path     => "/1.0/server_types/#{identifier}",
            :headers  => {"Content-Type" => "application/json"},
            :body     => options.to_json
          )
        end

      end

      class Mock

        def get_server_type(identifier, options = {})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
fog-0.5.1 lib/fog/compute/requests/brightbox/get_server_type.rb
fog-0.5.0 lib/fog/compute/requests/brightbox/get_server_type.rb
phpfog-fog-0.4.1.3 lib/fog/compute/requests/brightbox/get_server_type.rb
phpfog-fog-0.4.1.2 lib/fog/compute/requests/brightbox/get_server_type.rb
phpfog-fog-0.4.1.1 lib/fog/compute/requests/brightbox/get_server_type.rb
phpfog-fog-0.4.1 lib/fog/compute/requests/brightbox/get_server_type.rb
fog-0.4.1 lib/fog/compute/requests/brightbox/get_server_type.rb
fog-0.4.0 lib/fog/brightbox/requests/compute/get_server_type.rb
fog-0.3.34 lib/fog/brightbox/requests/compute/get_server_type.rb
fog-0.3.33 lib/fog/brightbox/requests/compute/get_server_type.rb
fog-0.3.32 lib/fog/brightbox/requests/compute/get_server_type.rb
fog-0.3.31 lib/fog/brightbox/requests/compute/get_server_type.rb
fog-0.3.30 lib/fog/brightbox/requests/compute/get_server_type.rb
fog-0.3.29 lib/fog/brightbox/requests/compute/get_server_type.rb
fog-0.3.28 lib/fog/brightbox/requests/compute/get_server_type.rb
fog-0.3.27 lib/fog/brightbox/requests/compute/get_server_type.rb
fog-0.3.26 lib/fog/brightbox/requests/compute/get_server_type.rb
fog-0.3.25 lib/fog/brightbox/requests/compute/get_server_type.rb
fog-0.3.24 lib/fog/brightbox/requests/compute/get_server_type.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/brightbox/requests/compute/get_server_type.rb