Class: Datacash::Request::Request

Inherits:
Base
  • Object
show all
Defined in:
lib/datacash/request/request.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, key, keys, root, #to_xml

Constructor Details

This class inherits a constructor from Datacash::Request::Base

Instance Method Details

#add_authentication(options = {}) ⇒ Object



12
13
14
15
16
# File 'lib/datacash/request/request.rb', line 12

def add_authentication(options = {})
  self[:authentication] ||= {}
  self[:authentication][:client]   = options.fetch(:client)
  self[:authentication][:password] = options.fetch(:password)
end