Class: PostRunner::DeviceList
- Inherits:
-
Object
- Object
- PostRunner::DeviceList
- Includes:
- Fit4Ruby::Converters
- Defined in:
- lib/postrunner/DeviceList.rb
Instance Method Summary collapse
-
#initialize(fit_activity) ⇒ DeviceList
constructor
A new instance of DeviceList.
- #to_html(doc) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(fit_activity) ⇒ DeviceList
Returns a new instance of DeviceList.
23 24 25 |
# File 'lib/postrunner/DeviceList.rb', line 23 def initialize(fit_activity) @fit_activity = fit_activity end |
Instance Method Details
#to_html(doc) ⇒ Object
27 28 29 |
# File 'lib/postrunner/DeviceList.rb', line 27 def to_html(doc) ViewFrame.new('Devices', 600, devices).to_html(doc) end |
#to_s ⇒ Object
31 32 33 |
# File 'lib/postrunner/DeviceList.rb', line 31 def to_s devices.map { |d| d.to_s }.join("\n") end |