Class: Lce::Configuration
- Inherits:
-
Object
- Object
- Lce::Configuration
- Defined in:
- lib/lce.rb
Instance Attribute Summary collapse
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#application ⇒ Object
Returns the value of attribute application.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#http_adapter ⇒ Object
Returns the value of attribute http_adapter.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#login ⇒ Object
Returns the value of attribute login.
-
#password ⇒ Object
Returns the value of attribute password.
-
#raise_lce_errors ⇒ Object
Returns the value of attribute raise_lce_errors.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_version ⇒ Object
Returns the value of attribute api_version.
46 47 48 |
# File 'lib/lce.rb', line 46 def api_version @api_version end |
#application ⇒ Object
Returns the value of attribute application.
46 47 48 |
# File 'lib/lce.rb', line 46 def application @application end |
#environment ⇒ Object
Returns the value of attribute environment.
46 47 48 |
# File 'lib/lce.rb', line 46 def environment @environment end |
#http_adapter ⇒ Object
Returns the value of attribute http_adapter.
46 47 48 |
# File 'lib/lce.rb', line 46 def http_adapter @http_adapter end |
#logger ⇒ Object
Returns the value of attribute logger.
46 47 48 |
# File 'lib/lce.rb', line 46 def logger @logger end |
#login ⇒ Object
Returns the value of attribute login.
46 47 48 |
# File 'lib/lce.rb', line 46 def login @login end |
#password ⇒ Object
Returns the value of attribute password.
46 47 48 |
# File 'lib/lce.rb', line 46 def password @password end |
#raise_lce_errors ⇒ Object
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 |
#version ⇒ Object
Returns the value of attribute version.
46 47 48 |
# File 'lib/lce.rb', line 46 def version @version end |