Class: Cadooz::Configuration
- Inherits:
-
Object
- Object
- Cadooz::Configuration
- Defined in:
- lib/cadooz.rb
Constant Summary collapse
- WSDL =
'https://webservices.cadooz.com/services/businessorder/1.5.2/BusinessOrderService/BusinessOrder?wsdl'
- TEST_USERNAME =
'cadooz'
- TEST_PASSWORD =
'Cadooz2015'
Instance Attribute Summary collapse
-
#generation_profile ⇒ Object
Returns the value of attribute generation_profile.
-
#password ⇒ Object
Returns the value of attribute password.
-
#payment_password ⇒ Object
Returns the value of attribute payment_password.
-
#payment_username ⇒ Object
Returns the value of attribute payment_username.
-
#program_id ⇒ Object
Returns the value of attribute program_id.
-
#username ⇒ Object
Returns the value of attribute username.
-
#wsdl ⇒ Object
Returns the value of attribute wsdl.
Instance Method Summary collapse
-
#initialize(username, password, generation_profile, program_id, payment_username, payment_password) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(username, password, generation_profile, program_id, payment_username, payment_password) ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 18 19 20 21 22 |
# File 'lib/cadooz.rb', line 14 def initialize(username, password, generation_profile, program_id, payment_username, payment_password) self.username = username || TEST_USERNAME self.password = password || TEST_PASSWORD self.wsdl = WSDL self.generation_profile = generation_profile self.program_id = program_id self.payment_username = payment_username self.payment_password = payment_password end |
Instance Attribute Details
#generation_profile ⇒ Object
Returns the value of attribute generation_profile.
8 9 10 |
# File 'lib/cadooz.rb', line 8 def generation_profile @generation_profile end |
#password ⇒ Object
Returns the value of attribute password.
8 9 10 |
# File 'lib/cadooz.rb', line 8 def password @password end |
#payment_password ⇒ Object
Returns the value of attribute payment_password.
8 9 10 |
# File 'lib/cadooz.rb', line 8 def payment_password @payment_password end |
#payment_username ⇒ Object
Returns the value of attribute payment_username.
8 9 10 |
# File 'lib/cadooz.rb', line 8 def payment_username @payment_username end |
#program_id ⇒ Object
Returns the value of attribute program_id.
8 9 10 |
# File 'lib/cadooz.rb', line 8 def program_id @program_id end |
#username ⇒ Object
Returns the value of attribute username.
8 9 10 |
# File 'lib/cadooz.rb', line 8 def username @username end |
#wsdl ⇒ Object
Returns the value of attribute wsdl.
8 9 10 |
# File 'lib/cadooz.rb', line 8 def wsdl @wsdl end |