Class: SageWorld::Auth
- Inherits:
-
Object
- Object
- SageWorld::Auth
- Defined in:
- lib/sage_world/auth.rb
Instance Attribute Summary collapse
-
#request_body ⇒ Object
readonly
Returns the value of attribute request_body.
Instance Method Summary collapse
-
#initialize(params) ⇒ Auth
constructor
A new instance of Auth.
- #to_xml ⇒ Object
Constructor Details
#initialize(params) ⇒ Auth
Returns a new instance of Auth.
8 9 10 11 12 13 14 15 |
# File 'lib/sage_world/auth.rb', line 8 def initialize(params) validate_configuration @login_id = SageWorld.configuration.login @password = SageWorld.configuration.password @version = SageWorld.configuration.version @account_id = SageWorld.configuration.account_id @params = params end |
Instance Attribute Details
#request_body ⇒ Object (readonly)
Returns the value of attribute request_body.
6 7 8 |
# File 'lib/sage_world/auth.rb', line 6 def request_body @request_body end |
Instance Method Details
#to_xml ⇒ Object
17 18 19 20 21 |
# File 'lib/sage_world/auth.rb', line 17 def to_xml if request_body Gyoku.xml(request_body, key_converter: lambda { |key| key.camelize(:upper) }) end end |