Class: Hawkular::Metrics::BaseObject
- Inherits:
-
Object
- Object
- Hawkular::Metrics::BaseObject
- Defined in:
- lib/hawkular/metrics/types.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#json ⇒ Object
readonly
Returns the value of attribute json.
Instance Method Summary collapse
-
#initialize(json) ⇒ BaseObject
constructor
A new instance of BaseObject.
Constructor Details
#initialize(json) ⇒ BaseObject
Returns a new instance of BaseObject
7 8 9 10 |
# File 'lib/hawkular/metrics/types.rb', line 7 def initialize(json) @json = json @id = @json['id'] unless json.nil? end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/hawkular/metrics/types.rb', line 5 def id @id end |
#json ⇒ Object (readonly)
Returns the value of attribute json
4 5 6 |
# File 'lib/hawkular/metrics/types.rb', line 4 def json @json end |