Class: Latitude::API::Resources::Server::Spec

Inherits:
APIObject
  • Object
show all
Defined in:
lib/latitude/api/resources/server.rb

Constant Summary

Constants inherited from APIObject

APIObject::RESERVED

Instance Attribute Summary collapse

Attributes inherited from APIObject

#raw

Method Summary

Methods inherited from APIObject

#==, #[], #as_json, #each, #hash, #initialize, #inspect, #key?, #keys, #method_missing, #respond_to_missing?, #to_h, wrap

Methods included from Attributes::ClassMethods

#attribute, #attribute_specs

Methods included from Attributes::InstanceMethods

#attribute_spec, #read_attribute, #wrap_attribute

Constructor Details

This class inherits a constructor from Latitude::API::APIObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Latitude::API::APIObject

Instance Attribute Details

#cpuString (readonly)

Returns:

  • (String)


156
157
158
159
160
161
162
# File 'lib/latitude/api/resources/server.rb', line 156

class Spec < APIObject
  attribute :cpu, :string, read_only: true
  attribute :disk, :string, read_only: true
  attribute :ram, :string, read_only: true
  attribute :nic, :string, read_only: true
  attribute :gpu, :string, read_only: true
end

#diskString (readonly)

Returns:

  • (String)


156
157
158
159
160
161
162
# File 'lib/latitude/api/resources/server.rb', line 156

class Spec < APIObject
  attribute :cpu, :string, read_only: true
  attribute :disk, :string, read_only: true
  attribute :ram, :string, read_only: true
  attribute :nic, :string, read_only: true
  attribute :gpu, :string, read_only: true
end

#gpuString (readonly)

Returns:

  • (String)


156
157
158
159
160
161
162
# File 'lib/latitude/api/resources/server.rb', line 156

class Spec < APIObject
  attribute :cpu, :string, read_only: true
  attribute :disk, :string, read_only: true
  attribute :ram, :string, read_only: true
  attribute :nic, :string, read_only: true
  attribute :gpu, :string, read_only: true
end

#nicString (readonly)

Returns:

  • (String)


156
157
158
159
160
161
162
# File 'lib/latitude/api/resources/server.rb', line 156

class Spec < APIObject
  attribute :cpu, :string, read_only: true
  attribute :disk, :string, read_only: true
  attribute :ram, :string, read_only: true
  attribute :nic, :string, read_only: true
  attribute :gpu, :string, read_only: true
end

#ramString (readonly)

Returns:

  • (String)


156
157
158
159
160
161
162
# File 'lib/latitude/api/resources/server.rb', line 156

class Spec < APIObject
  attribute :cpu, :string, read_only: true
  attribute :disk, :string, read_only: true
  attribute :ram, :string, read_only: true
  attribute :nic, :string, read_only: true
  attribute :gpu, :string, read_only: true
end