Class: HockeyAppConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/motion/project/hockeyapp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tokenObject

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_idObject

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_idObject

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_typeObject

Returns the value of attribute notes_type.



31
32
33
# File 'lib/motion/project/hockeyapp.rb', line 31

def notes_type
  @notes_type
end

#notifyObject

Returns the value of attribute notify.



31
32
33
# File 'lib/motion/project/hockeyapp.rb', line 31

def notify
  @notify
end

#statusObject

Returns the value of attribute status.



31
32
33
# File 'lib/motion/project/hockeyapp.rb', line 31

def status
  @status
end

Instance Method Details

#inspectObject



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