Class: PostRunner::DeviceList

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

Instance Method Summary collapse

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_sObject



29
30
31
# File 'lib/postrunner/DeviceList.rb', line 29

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