Class: Eloan::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Configuration

Returns a new instance of Configuration.



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

def initialize
  @env = 'development'
end

Instance Attribute Details

#app_key ⇒ Object

Returns the value of attribute app_key.



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

def app_key
  @app_key
end

#app_token ⇒ Object

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_url ⇒ Object

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_name ⇒ Object

Returns the value of attribute client_name.



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

def client_name
  @client_name
end

#company_name ⇒ Object

Returns the value of attribute company_name.



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

def company_name
  @company_name
end

#env ⇒ Object

Returns the value of attribute env.



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

def env
  @env
end

#platform ⇒ Object

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

Returns:

  • (Boolean)


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

def production?
  env == 'production'
end