Class: Latitude::API::Resources::VirtualMachine::Spec

Inherits:
APIObject
  • Object
show all
Defined in:
lib/latitude/api/resources/virtual_machine.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

#gpuString (readonly)

Returns:

  • (String)


92
93
94
95
96
97
98
# File 'lib/latitude/api/resources/virtual_machine.rb', line 92

class Spec < APIObject
  attribute :vcpu, :integer, read_only: true
  attribute :ram, :string, read_only: true
  attribute :storage, :string, read_only: true
  attribute :nic, :string, read_only: true
  attribute :gpu, :string, read_only: true
end

#nicString (readonly)

Returns:

  • (String)


92
93
94
95
96
97
98
# File 'lib/latitude/api/resources/virtual_machine.rb', line 92

class Spec < APIObject
  attribute :vcpu, :integer, read_only: true
  attribute :ram, :string, read_only: true
  attribute :storage, :string, read_only: true
  attribute :nic, :string, read_only: true
  attribute :gpu, :string, read_only: true
end

#ramString (readonly)

Returns:

  • (String)


92
93
94
95
96
97
98
# File 'lib/latitude/api/resources/virtual_machine.rb', line 92

class Spec < APIObject
  attribute :vcpu, :integer, read_only: true
  attribute :ram, :string, read_only: true
  attribute :storage, :string, read_only: true
  attribute :nic, :string, read_only: true
  attribute :gpu, :string, read_only: true
end

#storageString (readonly)

Returns:

  • (String)


92
93
94
95
96
97
98
# File 'lib/latitude/api/resources/virtual_machine.rb', line 92

class Spec < APIObject
  attribute :vcpu, :integer, read_only: true
  attribute :ram, :string, read_only: true
  attribute :storage, :string, read_only: true
  attribute :nic, :string, read_only: true
  attribute :gpu, :string, read_only: true
end

#vcpuInteger (readonly)

Returns:

  • (Integer)


92
93
94
95
96
97
98
# File 'lib/latitude/api/resources/virtual_machine.rb', line 92

class Spec < APIObject
  attribute :vcpu, :integer, read_only: true
  attribute :ram, :string, read_only: true
  attribute :storage, :string, read_only: true
  attribute :nic, :string, read_only: true
  attribute :gpu, :string, read_only: true
end