Class: Dev2func::Configuration

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

Overview

The configuration class. Setup caller environment as part of initialisation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Configuration

Returns a new instance of Configuration.

Yields:

  • (_self)

Yield Parameters:



17
18
19
20
# File 'lib/dev2func/configuration.rb', line 17

def initialize
  yield self
  setup_platform_details
end

Instance Attribute Details

#code_versionObject

Returns the value of attribute code_version.



5
6
7
# File 'lib/dev2func/configuration.rb', line 5

def code_version
  @code_version
end

#default_loggerObject

Returns the value of attribute default_logger.



5
6
7
# File 'lib/dev2func/configuration.rb', line 5

def default_logger
  @default_logger
end

#endpointObject

Returns the value of attribute endpoint.



5
6
7
# File 'lib/dev2func/configuration.rb', line 5

def endpoint
  @endpoint
end

#environmentObject

Returns the value of attribute environment.



5
6
7
# File 'lib/dev2func/configuration.rb', line 5

def environment
  @environment
end

#filepathObject

Returns the value of attribute filepath.



5
6
7
# File 'lib/dev2func/configuration.rb', line 5

def filepath
  @filepath
end

#frameworkObject

Returns the value of attribute framework.



5
6
7
# File 'lib/dev2func/configuration.rb', line 5

def framework
  @framework
end

#hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/dev2func/configuration.rb', line 5

def host
  @host
end

#platform_detailObject

Returns the value of attribute platform_detail.



5
6
7
# File 'lib/dev2func/configuration.rb', line 5

def platform_detail
  @platform_detail
end

#project_tokenObject

Returns the value of attribute project_token.



5
6
7
# File 'lib/dev2func/configuration.rb', line 5

def project_token
  @project_token
end

#rootObject

Returns the value of attribute root.



5
6
7
# File 'lib/dev2func/configuration.rb', line 5

def root
  @root
end

#user_ipObject

Returns the value of attribute user_ip.



5
6
7
# File 'lib/dev2func/configuration.rb', line 5

def user_ip
  @user_ip
end