Class: Eloan::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/eloan/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



6
7
8
# File 'lib/eloan/configuration.rb', line 6

def initialize
  @env = 'development'
end

Instance Attribute Details

#app_keyObject

Returns the value of attribute app_key.



3
4
5
# File 'lib/eloan/configuration.rb', line 3

def app_key
  @app_key
end

#app_tokenObject

Returns the value of attribute app_token.



3
4
5
# File 'lib/eloan/configuration.rb', line 3

def app_token
  @app_token
end

#bg_return_urlObject

Returns the value of attribute bg_return_url.



3
4
5
# File 'lib/eloan/configuration.rb', line 3

def bg_return_url
  @bg_return_url
end

#client_nameObject

Returns the value of attribute client_name.



3
4
5
# File 'lib/eloan/configuration.rb', line 3

def client_name
  @client_name
end

#company_nameObject

Returns the value of attribute company_name.



3
4
5
# File 'lib/eloan/configuration.rb', line 3

def company_name
  @company_name
end

#envObject

Returns the value of attribute env.



3
4
5
# File 'lib/eloan/configuration.rb', line 3

def env
  @env
end

#platformObject

Returns the value of attribute platform.



3
4
5
# File 'lib/eloan/configuration.rb', line 3

def platform
  @platform
end

Instance Method Details

#production?Boolean



10
11
12
# File 'lib/eloan/configuration.rb', line 10

def production?
  env == 'production'
end