Class: DeltacloudVM::Client::Metric::Property
- Inherits:
-
Object
- Object
- DeltacloudVM::Client::Metric::Property
- Defined in:
- lib/deltacloud_vm/client/models/metric.rb
Defined Under Namespace
Classes: Sample
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#samples ⇒ Object
readonly
Returns the value of attribute samples.
Instance Method Summary collapse
- #<<(values) ⇒ Object
-
#initialize(name, samples = []) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(name, samples = []) ⇒ Property
Returns a new instance of Property.
30 31 32 33 |
# File 'lib/deltacloud_vm/client/models/metric.rb', line 30 def initialize(name, samples=[]) @name = name samples.each { |s| self << s } end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
28 29 30 |
# File 'lib/deltacloud_vm/client/models/metric.rb', line 28 def name @name end |
#samples ⇒ Object (readonly)
Returns the value of attribute samples.
28 29 30 |
# File 'lib/deltacloud_vm/client/models/metric.rb', line 28 def samples @samples end |