Class: PostRunner::DeviceList

Inherits:
Object
  • Object
show all
Includes:
ViewWidgets
Defined in:
lib/postrunner/DeviceList.rb

Instance Method Summary collapse

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_sObject



33
34
35
# File 'lib/postrunner/DeviceList.rb', line 33

def to_s
  devices.map { |d| d.to_s }.join("\n")
end