Class: CandyCheck::AppStore::Config
- Inherits:
-
Utils::Config
- Object
- Utils::Config
- CandyCheck::AppStore::Config
- Defined in:
- lib/candy_check/app_store/config.rb
Overview
Configure the verifier
Instance Attribute Summary collapse
-
#environment ⇒ Symbol
readonly
The used environment.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Object
constructor
Initializes a new configuration from a hash.
-
#production? ⇒ Boolean
If it is production environment.
Constructor Details
#initialize(attributes) ⇒ Object
Initializes a new configuration from a hash
|
# File 'lib/candy_check/app_store/config.rb', line 8
|
Instance Attribute Details
#environment ⇒ Symbol (readonly)
Returns the used environment.
6 7 8 |
# File 'lib/candy_check/app_store/config.rb', line 6 def environment @environment end |
Instance Method Details
#production? ⇒ Boolean
Returns if it is production environment.
17 18 19 |
# File 'lib/candy_check/app_store/config.rb', line 17 def production? environment == :production end |