Class: Lce::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



48
49
50
51
52
53
54
55
56
57
# File 'lib/lce.rb', line 48

def initialize
  @environment = :staging
  @api_version = 2
  @http_adapter = Faraday.default_adapter
  @raise_lce_errors = true
  @logger = Logger.new(STDOUT)
  @logger.level = Logger::DEBUG
  @application = 'ruby-lce'
  @version = Lce::VERSION
end

Instance Attribute Details

#api_versionObject

Returns the value of attribute api_version.



46
47
48
# File 'lib/lce.rb', line 46

def api_version
  @api_version
end

#applicationObject

Returns the value of attribute application.



46
47
48
# File 'lib/lce.rb', line 46

def application
  @application
end

#environmentObject

Returns the value of attribute environment.



46
47
48
# File 'lib/lce.rb', line 46

def environment
  @environment
end

#http_adapterObject

Returns the value of attribute http_adapter.



46
47
48
# File 'lib/lce.rb', line 46

def http_adapter
  @http_adapter
end

#loggerObject

Returns the value of attribute logger.



46
47
48
# File 'lib/lce.rb', line 46

def logger
  @logger
end

#loginObject

Returns the value of attribute login.



46
47
48
# File 'lib/lce.rb', line 46

def 
  @login
end

#passwordObject

Returns the value of attribute password.



46
47
48
# File 'lib/lce.rb', line 46

def password
  @password
end

#raise_lce_errorsObject

Returns the value of attribute raise_lce_errors.



46
47
48
# File 'lib/lce.rb', line 46

def raise_lce_errors
  @raise_lce_errors
end

#versionObject

Returns the value of attribute version.



46
47
48
# File 'lib/lce.rb', line 46

def version
  @version
end