Class: Boletoman::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#envObject

Returns the value of attribute env.



15
16
17
# File 'lib/boletoman/config.rb', line 15

def env
  @env
end

#itauObject

Returns the value of attribute itau.



15
16
17
# File 'lib/boletoman/config.rb', line 15

def itau
  @itau
end

#redisObject

Returns the value of attribute redis.



15
16
17
# File 'lib/boletoman/config.rb', line 15

def redis
  @redis
end

#santanderObject

Returns the value of attribute santander.



15
16
17
# File 'lib/boletoman/config.rb', line 15

def santander
  @santander
end

#verboseObject

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

Returns:

  • (Boolean)


22
23
24
# File 'lib/boletoman/config.rb', line 22

def production_env?
  env == :production
end