Class: Boletoman::Configuration
- Inherits:
-
Object
- Object
- Boletoman::Configuration
- Defined in:
- lib/boletoman/config.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
Returns the value of attribute env.
-
#itau ⇒ Object
Returns the value of attribute itau.
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#santander ⇒ Object
Returns the value of attribute santander.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #production_env? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 |
# File 'lib/boletoman/config.rb', line 17 def initialize @env = :dev @verbose = false end |
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env.
15 16 17 |
# File 'lib/boletoman/config.rb', line 15 def env @env end |
#itau ⇒ Object
Returns the value of attribute itau.
15 16 17 |
# File 'lib/boletoman/config.rb', line 15 def itau @itau end |
#redis ⇒ Object
Returns the value of attribute redis.
15 16 17 |
# File 'lib/boletoman/config.rb', line 15 def redis @redis end |
#santander ⇒ Object
Returns the value of attribute santander.
15 16 17 |
# File 'lib/boletoman/config.rb', line 15 def santander @santander end |
#verbose ⇒ Object
Returns the value of attribute verbose.
15 16 17 |
# File 'lib/boletoman/config.rb', line 15 def verbose @verbose end |
Instance Method Details
#production_env? ⇒ Boolean
22 23 24 |
# File 'lib/boletoman/config.rb', line 22 def production_env? env == :production end |