Module: RmsApiRuby
- Defined in:
- lib/rms_api_ruby.rb,
lib/rms_api_ruby/chain.rb,
lib/rms_api_ruby/order.rb,
lib/rms_api_ruby/config.rb,
lib/rms_api_ruby/orders.rb,
lib/rms_api_ruby/version.rb,
lib/rms_api_ruby/soap_api.rb,
lib/rms_api_ruby/inventory.rb,
lib/rms_api_ruby/chain/logger.rb,
lib/rms_api_ruby/authentication.rb,
lib/rms_api_ruby/soap_api/client.rb,
lib/rms_api_ruby/chain/soap_client.rb
Defined Under Namespace
Modules: SoapApi Classes: Authentication, Chain, Configuration, Inventory, Order, Orders
Constant Summary collapse
- Error =
Class.new(StandardError)
- ServerError =
Class.new(Error)
- AuthenticationError =
Class.new(Error)
- VERSION =
"0.2.1".freeze
Class Method Summary collapse
-
.configuration ⇒ Object
Returns the current configuration.
-
.configure {|configuration| ... } ⇒ Object
Yields the Configuration.
- .root ⇒ Object
Class Method Details
.configuration ⇒ Object
Returns the current configuration
Example
RmsApiRuby.configuration.service_secret = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
RmsApiRuby.configuration.license_key = 'abcdefghijklmnopqrstuvwxyz'
11 12 13 |
# File 'lib/rms_api_ruby/config.rb', line 11 def configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
Yields the Configuration
Example
RmsApiRuby.configure do |config|
config.service_secret = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
config.license_key = 'abcdefghijklmnopqrstuvwxyz'
end
23 24 25 |
# File 'lib/rms_api_ruby/config.rb', line 23 def configure yield configuration end |
.root ⇒ Object
19 20 21 |
# File 'lib/rms_api_ruby.rb', line 19 def self.root File.dirname __dir__ end |