Class: HockeyAppConfig
- Inherits:
-
Object
- Object
- HockeyAppConfig
- Defined in:
- lib/motion/project/hockeyapp.rb
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#beta_id ⇒ Object
Returns the value of attribute beta_id.
-
#live_id ⇒ Object
Returns the value of attribute live_id.
-
#notes_type ⇒ Object
Returns the value of attribute notes_type.
-
#notify ⇒ Object
Returns the value of attribute notify.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(config) ⇒ HockeyAppConfig
constructor
A new instance of HockeyAppConfig.
- #inspect ⇒ Object
- #set(var, val) ⇒ Object
Constructor Details
#initialize(config) ⇒ HockeyAppConfig
Returns a new instance of HockeyAppConfig.
39 40 41 |
# File 'lib/motion/project/hockeyapp.rb', line 39 def initialize(config) @config = config end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
31 32 33 |
# File 'lib/motion/project/hockeyapp.rb', line 31 def api_token @api_token end |
#beta_id ⇒ Object
Returns the value of attribute beta_id.
31 32 33 |
# File 'lib/motion/project/hockeyapp.rb', line 31 def beta_id @beta_id end |
#live_id ⇒ Object
Returns the value of attribute live_id.
31 32 33 |
# File 'lib/motion/project/hockeyapp.rb', line 31 def live_id @live_id end |
#notes_type ⇒ Object
Returns the value of attribute notes_type.
31 32 33 |
# File 'lib/motion/project/hockeyapp.rb', line 31 def notes_type @notes_type end |
#notify ⇒ Object
Returns the value of attribute notify.
31 32 33 |
# File 'lib/motion/project/hockeyapp.rb', line 31 def notify @notify end |
#status ⇒ Object
Returns the value of attribute status.
31 32 33 |
# File 'lib/motion/project/hockeyapp.rb', line 31 def status @status end |
Instance Method Details
#inspect ⇒ Object
43 44 45 |
# File 'lib/motion/project/hockeyapp.rb', line 43 def inspect {:api_token => api_token, :beta_id => beta_id, :live_id => live_id, :status => status, :notify => notify, :notes_type => notes_type}.inspect end |
#set(var, val) ⇒ Object
33 34 35 36 37 |
# File 'lib/motion/project/hockeyapp.rb', line 33 def set(var, val) @config.info_plist['HockeySDK'] ||= [{}] @config.info_plist['HockeySDK'].first[var.to_s] = val send("#{var}=", val) end |