Class: DockerCloud::Node::LastMetric
- Inherits:
-
Object
- Object
- DockerCloud::Node::LastMetric
- Defined in:
- lib/docker_cloud/node.rb
Instance Attribute Summary collapse
-
#cpu ⇒ Object
Returns the value of attribute cpu.
-
#disk ⇒ Object
Returns the value of attribute disk.
-
#memory ⇒ Object
Returns the value of attribute memory.
Instance Method Summary collapse
-
#initialize(response) ⇒ LastMetric
constructor
A new instance of LastMetric.
Constructor Details
#initialize(response) ⇒ LastMetric
Returns a new instance of LastMetric.
92 93 94 95 96 |
# File 'lib/docker_cloud/node.rb', line 92 def initialize(response) @cpu = response[:cpu] @disk = response[:disk] @memory = response[:memory] end |
Instance Attribute Details
#cpu ⇒ Object
Returns the value of attribute cpu.
91 92 93 |
# File 'lib/docker_cloud/node.rb', line 91 def cpu @cpu end |
#disk ⇒ Object
Returns the value of attribute disk.
91 92 93 |
# File 'lib/docker_cloud/node.rb', line 91 def disk @disk end |
#memory ⇒ Object
Returns the value of attribute memory.
91 92 93 |
# File 'lib/docker_cloud/node.rb', line 91 def memory @memory end |