Class: Info
- Inherits:
-
Object
- Object
- Info
- Defined in:
- lib/flick/info.rb
Instance Attribute Summary collapse
-
#driver ⇒ Object
Returns the value of attribute driver.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#save ⇒ Object
Returns the value of attribute save.
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize(options) ⇒ Info
constructor
A new instance of Info.
Constructor Details
#initialize(options) ⇒ Info
Returns a new instance of Info.
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/flick/info.rb', line 5 def initialize Flick::Checker.platform [:platform] self.platform = [:platform] case @platform when "ios" [:todir] = [:outdir] self.driver = Flick::Ios.new when "android" self.driver = Flick::Android.new end self.save = [:save].to_b end |
Instance Attribute Details
#driver ⇒ Object
Returns the value of attribute driver.
3 4 5 |
# File 'lib/flick/info.rb', line 3 def driver @driver end |
#platform ⇒ Object
Returns the value of attribute platform.
3 4 5 |
# File 'lib/flick/info.rb', line 3 def platform @platform end |
#save ⇒ Object
Returns the value of attribute save.
3 4 5 |
# File 'lib/flick/info.rb', line 3 def save @save end |
Instance Method Details
#info ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/flick/info.rb', line 18 def info ap driver.info if save puts "Saving to #{driver.outdir}/info-#{driver.name}.log" save_device_data driver.info end end |