Class: RRD::Response::TrackDetail
- Inherits:
-
Object
- Object
- RRD::Response::TrackDetail
- Defined in:
- lib/rrd-track/response/track_detail.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#location ⇒ Object
Returns the value of attribute location.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(init) ⇒ TrackDetail
constructor
A new instance of TrackDetail.
Constructor Details
#initialize(init) ⇒ TrackDetail
Returns a new instance of TrackDetail.
7 8 9 10 11 |
# File 'lib/rrd-track/response/track_detail.rb', line 7 def initialize(init) init.each_pair do |key, val| instance_variable_set('@' + key.to_s, val) end end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/rrd-track/response/track_detail.rb', line 3 def description @description end |
#location ⇒ Object
Returns the value of attribute location.
3 4 5 |
# File 'lib/rrd-track/response/track_detail.rb', line 3 def location @location end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
3 4 5 |
# File 'lib/rrd-track/response/track_detail.rb', line 3 def @timestamp end |