Class: WeatherLink::DataRecord
- Inherits:
-
HashWrapper
- Object
- SimpleDelegator
- HashWrapper
- WeatherLink::DataRecord
- Defined in:
- lib/weatherlink/data_record.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Attributes inherited from HashWrapper
Instance Method Summary collapse
-
#initialize(client, data) ⇒ DataRecord
constructor
A new instance of DataRecord.
Constructor Details
#initialize(client, data) ⇒ DataRecord
Returns a new instance of DataRecord.
7 8 9 10 |
# File 'lib/weatherlink/data_record.rb', line 7 def initialize(client, data) @client = client super(data) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class WeatherLink::HashWrapper
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/weatherlink/data_record.rb', line 5 def client @client end |