Class: Latitude::API::Resources::Plan::Spec

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

#cpuCpu (readonly)

Returns:



84
85
86
87
88
89
90
# File 'lib/latitude/api/resources/plan.rb', line 84

class Spec < APIObject
  attribute :cpu, Cpu, read_only: true
  attribute :memory, Memory, read_only: true
  attribute :drives, [Drive], read_only: true
  attribute :nics, [Nic], read_only: true
  attribute :gpu, Gpu, read_only: true
end

#drivesArray<Drive> (readonly)

Returns:



84
85
86
87
88
89
90
# File 'lib/latitude/api/resources/plan.rb', line 84

class Spec < APIObject
  attribute :cpu, Cpu, read_only: true
  attribute :memory, Memory, read_only: true
  attribute :drives, [Drive], read_only: true
  attribute :nics, [Nic], read_only: true
  attribute :gpu, Gpu, read_only: true
end

#gpuGpu (readonly)

Returns:



84
85
86
87
88
89
90
# File 'lib/latitude/api/resources/plan.rb', line 84

class Spec < APIObject
  attribute :cpu, Cpu, read_only: true
  attribute :memory, Memory, read_only: true
  attribute :drives, [Drive], read_only: true
  attribute :nics, [Nic], read_only: true
  attribute :gpu, Gpu, read_only: true
end

#memoryMemory (readonly)

Returns:



84
85
86
87
88
89
90
# File 'lib/latitude/api/resources/plan.rb', line 84

class Spec < APIObject
  attribute :cpu, Cpu, read_only: true
  attribute :memory, Memory, read_only: true
  attribute :drives, [Drive], read_only: true
  attribute :nics, [Nic], read_only: true
  attribute :gpu, Gpu, read_only: true
end

#nicsArray<Nic> (readonly)

Returns:



84
85
86
87
88
89
90
# File 'lib/latitude/api/resources/plan.rb', line 84

class Spec < APIObject
  attribute :cpu, Cpu, read_only: true
  attribute :memory, Memory, read_only: true
  attribute :drives, [Drive], read_only: true
  attribute :nics, [Nic], read_only: true
  attribute :gpu, Gpu, read_only: true
end