Class: CandyCheck::PlayStore::Config
- Inherits:
-
Utils::Config
- Object
- Utils::Config
- CandyCheck::PlayStore::Config
- Defined in:
- lib/candy_check/play_store/config.rb
Overview
Configure the usage of the official Google API SDK client
Instance Attribute Summary collapse
-
#application_name ⇒ String
readonly
Your application name.
-
#application_version ⇒ String
readonly
Your application’s version.
-
#cache_file ⇒ String
readonly
An optional file to cache the discovery API result.
-
#issuer ⇒ String
readonly
Your issuer’s service account e-mail.
-
#key_file ⇒ String
readonly
The path to your local *.p12 certificate file.
-
#key_secret ⇒ String
readonly
The secret to load your certificate file.
Instance Method Summary collapse
-
#api_key ⇒ String
The decrypted API key from Google.
-
#initialize(attributes) ⇒ Config
constructor
Initializes a new configuration from a hash.
Constructor Details
#initialize(attributes) ⇒ Config
Initializes a new configuration from a hash
29 30 31 |
# File 'lib/candy_check/play_store/config.rb', line 29 def initialize(attributes) super end |
Instance Attribute Details
#application_name ⇒ String (readonly)
6 7 8 |
# File 'lib/candy_check/play_store/config.rb', line 6 def application_name @application_name end |
#application_version ⇒ String (readonly)
8 9 10 |
# File 'lib/candy_check/play_store/config.rb', line 8 def application_version @application_version end |
#cache_file ⇒ String (readonly)
10 11 12 |
# File 'lib/candy_check/play_store/config.rb', line 10 def cache_file @cache_file end |
#issuer ⇒ String (readonly)
12 13 14 |
# File 'lib/candy_check/play_store/config.rb', line 12 def issuer @issuer end |
#key_file ⇒ String (readonly)
14 15 16 |
# File 'lib/candy_check/play_store/config.rb', line 14 def key_file @key_file end |
#key_secret ⇒ String (readonly)
16 17 18 |
# File 'lib/candy_check/play_store/config.rb', line 16 def key_secret @key_secret end |
Instance Method Details
#api_key ⇒ String
34 35 36 37 38 |
# File 'lib/candy_check/play_store/config.rb', line 34 def api_key @api_key ||= begin Google::APIClient::KeyUtils.load_from_pkcs12(key_file, key_secret) end end |