Class: RRD::Response::TrackDetail

Inherits:
Object
  • Object
show all
Defined in:
lib/rrd-track/response/track_detail.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/rrd-track/response/track_detail.rb', line 3

def description
  @description
end

#locationObject

Returns the value of attribute location.



3
4
5
# File 'lib/rrd-track/response/track_detail.rb', line 3

def location
  @location
end

#timestampObject

Returns the value of attribute timestamp.



3
4
5
# File 'lib/rrd-track/response/track_detail.rb', line 3

def timestamp
  @timestamp
end