Class: Metric::Property
- Inherits:
-
Object
- Object
- Metric::Property
- Defined in:
- lib/deltacloud/models/metric.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(name, values = nil) ⇒ Property
constructor
A new instance of Property.
- #to_hash(context) ⇒ Object
Constructor Details
#initialize(name, values = nil) ⇒ Property
Returns a new instance of Property.
43 44 45 |
# File 'lib/deltacloud/models/metric.rb', line 43 def initialize(name, values=nil) @name, @values = name, values end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
41 42 43 |
# File 'lib/deltacloud/models/metric.rb', line 41 def name @name end |
#values ⇒ Object
Returns the value of attribute values.
41 42 43 |
# File 'lib/deltacloud/models/metric.rb', line 41 def values @values end |
Instance Method Details
#to_hash(context) ⇒ Object
47 48 49 50 51 52 |
# File 'lib/deltacloud/models/metric.rb', line 47 def to_hash(context) { :name => name, :values => values } end |