Class: Vitals
- Inherits:
-
Object
- Object
- Vitals
- Defined in:
- lib/flick/vitals.rb
Instance Attribute Summary collapse
-
#driver ⇒ Object
Returns the value of attribute driver.
-
#name ⇒ Object
Returns the value of attribute name.
-
#platform ⇒ Object
Returns the value of attribute platform.
Instance Method Summary collapse
-
#initialize(options) ⇒ Vitals
constructor
A new instance of Vitals.
- #vitals ⇒ Object
Constructor Details
#initialize(options) ⇒ Vitals
Returns a new instance of Vitals.
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/flick/vitals.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.name = [:name] end |
Instance Attribute Details
#driver ⇒ Object
Returns the value of attribute driver.
3 4 5 |
# File 'lib/flick/vitals.rb', line 3 def driver @driver end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/flick/vitals.rb', line 3 def name @name end |
#platform ⇒ Object
Returns the value of attribute platform.
3 4 5 |
# File 'lib/flick/vitals.rb', line 3 def platform @platform end |
Instance Method Details
#vitals ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/flick/vitals.rb', line 18 def vitals if platform == "ios" puts "\nAndroid only for now. If you know of a tool to get this info for iOS please let me know or add a PR :)\n".yellow; abort end if name.nil? puts "Specify a Package Name. e.g. -n com.viber".red; abort else driver.get_vitals name end end |