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.
44 45 46 |
# File 'lib/deltacloud/models/metric.rb', line 44 def initialize(name, values=nil) @name, @values = name, values end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
42 43 44 |
# File 'lib/deltacloud/models/metric.rb', line 42 def name @name end |
#values ⇒ Object
Returns the value of attribute values.
42 43 44 |
# File 'lib/deltacloud/models/metric.rb', line 42 def values @values end |
Instance Method Details
#to_hash(context) ⇒ Object
48 49 50 51 52 53 |
# File 'lib/deltacloud/models/metric.rb', line 48 def to_hash(context) { :name => name, :values => values } end |