Class: Puerta::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/puerta/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#envObject

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

Returns:

  • (Boolean)


14
15
16
# File 'lib/puerta/config.rb', line 14

def production?
  env.to_s == 'production'
end

#sandbox?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/puerta/config.rb', line 10

def sandbox?
  env.to_s == 'sandbox'
end