Module: Resonline

Defined in:
lib/resonline/service.rb,
lib/resonline/version.rb,
lib/resonline/constants.rb,
lib/resonline/inventory.rb,
lib/resonline/notification.rb,
lib/resonline/configuration.rb,
lib/resonline/error_messages.rb,
lib/resonline/transformation.rb

Defined Under Namespace

Modules: ErrorMessages, Inventory, Notification, Service, Transformation Classes: Configuration

Constant Summary collapse

VERSION =
"0.0.2"
SOAPPrefixUrl =
'https://api-pvt.resonline.com.au/direct/2.0/services/'
SOAPNamespaces =
{ 
  namespaces: {
    "xmlns:soapenv" => "http://schemas.xmlsoap.org/soap/envelope/",
    "xmlns:ns" => "http://cm.schema.com/direct/2.0/",
    "xmlns:ns1" => "http://cm.schema.com/api-core/2.0/"
  }
}

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Configure Resonline someplace sensible, like config/initializers/resonline.rb

Examples:

Resonline.configure do |config|
  config.cm_username = 'your channel manager username'
  config.cm_password = 'your channel manager password'
  config.username = 'your username'
  config.password = 'your password'
end


21
22
23
# File 'lib/resonline/configuration.rb', line 21

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



25
26
27
# File 'lib/resonline/configuration.rb', line 25

def self.configure
  yield(configuration)
end