Class: Puerta::Config
- Inherits:
-
Object
- Object
- Puerta::Config
- Defined in:
- lib/puerta/config.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
Returns the value of attribute env.
Instance Method Summary collapse
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env.
4 5 6 |
# File 'lib/puerta/config.rb', line 4 def env @env end |
Instance Method Details
#production? ⇒ Boolean
14 15 16 |
# File 'lib/puerta/config.rb', line 14 def production? env.to_s == 'production' end |
#sandbox? ⇒ Boolean
10 11 12 |
# File 'lib/puerta/config.rb', line 10 def sandbox? env.to_s == 'sandbox' end |