Class: Itexmo::Configuration

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

Overview

cofiguration class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_codeObject



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

#priorityObject

Returns the value of attribute priority.



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

def priority
  @priority
end