Class: PostRunner::DeviceList
- Inherits:
-
Object
- Object
- PostRunner::DeviceList
- 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.
21 22 23 |
# File 'lib/postrunner/DeviceList.rb', line 21 def initialize(fit_activity) @fit_activity = fit_activity end |
Instance Method Details
#to_html(doc) ⇒ Object
25 26 27 |
# File 'lib/postrunner/DeviceList.rb', line 25 def to_html(doc) ViewFrame.new('Devices', 600, devices).to_html(doc) end |
#to_s ⇒ Object
29 30 31 |
# File 'lib/postrunner/DeviceList.rb', line 29 def to_s devices.map { |d| d.to_s }.join("\n") end |