Class: Itexmo::Configuration
- Inherits:
-
Object
- Object
- Itexmo::Configuration
- Defined in:
- lib/itexmo/configuration.rb
Overview
cofiguration class
Instance Attribute Summary collapse
- #api_code ⇒ Object
-
#priority ⇒ Object
Returns the value of attribute priority.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/itexmo/configuration.rb', line 7 def initialize @api_code = nil @priority = 'NORMAL' end |
Instance Attribute Details
#api_code ⇒ Object
12 13 14 15 |
# File 'lib/itexmo/configuration.rb', line 12 def api_code raise Errors::Configuration, 'Itexmo api_code is missing! See documentation for configuration settings.' unless @api_code @api_code end |
#priority ⇒ Object
Returns the value of attribute priority.
17 18 19 |
# File 'lib/itexmo/configuration.rb', line 17 def priority @priority end |