Class: AndroidConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/Models/AndroidConfig.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configYMLObj, configFilePath, baseExecutePath) ⇒ AndroidConfig

Returns a new instance of AndroidConfig.



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/Models/AndroidConfig.rb', line 9

def initialize(configYMLObj, configFilePath, baseExecutePath)
    @keyFilePath = Helper.unwrapRequiredParameter(configYMLObj,"keyFilePath")

    if Pathname.new(keyFilePath).absolute?
        configDir = File.dirname(configFilePath)
        @keyFilePath = "#{configDir}#{keyFilePath}"
    end

    @accountID = configYMLObj["playConsoleDeveloperAccountID"]
    @appID = configYMLObj["playConsoleAppID"]
    @baseExecutePath = baseExecutePath
    @packageName = Helper.unwrapRequiredParameter(configYMLObj,"packageName")
end

Instance Attribute Details

#accountIDObject

Returns the value of attribute accountID.



8
9
10
# File 'lib/Models/AndroidConfig.rb', line 8

def accountID
  @accountID
end

#appIDObject

Returns the value of attribute appID.



8
9
10
# File 'lib/Models/AndroidConfig.rb', line 8

def appID
  @appID
end

#baseExecutePathObject

Returns the value of attribute baseExecutePath.



8
9
10
# File 'lib/Models/AndroidConfig.rb', line 8

def baseExecutePath
  @baseExecutePath
end

#keyFilePathObject

Returns the value of attribute keyFilePath.



8
9
10
# File 'lib/Models/AndroidConfig.rb', line 8

def keyFilePath
  @keyFilePath
end

#packageNameObject

Returns the value of attribute packageName.



8
9
10
# File 'lib/Models/AndroidConfig.rb', line 8

def packageName
  @packageName
end