Class: PostRunner::DeviceList
- Inherits:
-
Object
- Object
- PostRunner::DeviceList
- Includes:
- ViewWidgets
- 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
Methods included from ViewWidgets
#button, #footer, #frame, #titlebar, #view_widgets_style
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 30 31 |
# File 'lib/postrunner/DeviceList.rb', line 27 def to_html(doc) frame(doc, 'Devices') { devices.each { |d| d.to_html(doc) } } end |
#to_s ⇒ Object
33 34 35 |
# File 'lib/postrunner/DeviceList.rb', line 33 def to_s devices.map { |d| d.to_s }.join("\n") end |