Class: Dev2func::Configuration
- Inherits:
-
Object
- Object
- Dev2func::Configuration
- Defined in:
- lib/dev2func/configuration.rb
Overview
The configuration class. Setup caller environment as part of initialisation
Instance Attribute Summary collapse
-
#code_version ⇒ Object
Returns the value of attribute code_version.
-
#default_logger ⇒ Object
Returns the value of attribute default_logger.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#filepath ⇒ Object
Returns the value of attribute filepath.
-
#framework ⇒ Object
Returns the value of attribute framework.
-
#host ⇒ Object
Returns the value of attribute host.
-
#platform_detail ⇒ Object
Returns the value of attribute platform_detail.
-
#project_token ⇒ Object
Returns the value of attribute project_token.
-
#root ⇒ Object
Returns the value of attribute root.
-
#user_ip ⇒ Object
Returns the value of attribute user_ip.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize {|_self| ... } ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 |
# File 'lib/dev2func/configuration.rb', line 17 def initialize yield self setup_platform_details end |
Instance Attribute Details
#code_version ⇒ Object
Returns the value of attribute code_version.
5 6 7 |
# File 'lib/dev2func/configuration.rb', line 5 def code_version @code_version end |
#default_logger ⇒ Object
Returns the value of attribute default_logger.
5 6 7 |
# File 'lib/dev2func/configuration.rb', line 5 def default_logger @default_logger end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
5 6 7 |
# File 'lib/dev2func/configuration.rb', line 5 def endpoint @endpoint end |
#environment ⇒ Object
Returns the value of attribute environment.
5 6 7 |
# File 'lib/dev2func/configuration.rb', line 5 def environment @environment end |
#filepath ⇒ Object
Returns the value of attribute filepath.
5 6 7 |
# File 'lib/dev2func/configuration.rb', line 5 def filepath @filepath end |
#framework ⇒ Object
Returns the value of attribute framework.
5 6 7 |
# File 'lib/dev2func/configuration.rb', line 5 def framework @framework end |
#host ⇒ Object
Returns the value of attribute host.
5 6 7 |
# File 'lib/dev2func/configuration.rb', line 5 def host @host end |
#platform_detail ⇒ Object
Returns the value of attribute platform_detail.
5 6 7 |
# File 'lib/dev2func/configuration.rb', line 5 def platform_detail @platform_detail end |
#project_token ⇒ Object
Returns the value of attribute project_token.
5 6 7 |
# File 'lib/dev2func/configuration.rb', line 5 def project_token @project_token end |
#root ⇒ Object
Returns the value of attribute root.
5 6 7 |
# File 'lib/dev2func/configuration.rb', line 5 def root @root end |
#user_ip ⇒ Object
Returns the value of attribute user_ip.
5 6 7 |
# File 'lib/dev2func/configuration.rb', line 5 def user_ip @user_ip end |