Class: Cadooz::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_profileObject

Returns the value of attribute generation_profile.



8
9
10
# File 'lib/cadooz.rb', line 8

def generation_profile
  @generation_profile
end

#passwordObject

Returns the value of attribute password.



8
9
10
# File 'lib/cadooz.rb', line 8

def password
  @password
end

#payment_passwordObject

Returns the value of attribute payment_password.



8
9
10
# File 'lib/cadooz.rb', line 8

def payment_password
  @payment_password
end

#payment_usernameObject

Returns the value of attribute payment_username.



8
9
10
# File 'lib/cadooz.rb', line 8

def payment_username
  @payment_username
end

#program_idObject

Returns the value of attribute program_id.



8
9
10
# File 'lib/cadooz.rb', line 8

def program_id
  @program_id
end

#usernameObject

Returns the value of attribute username.



8
9
10
# File 'lib/cadooz.rb', line 8

def username
  @username
end

#wsdlObject

Returns the value of attribute wsdl.



8
9
10
# File 'lib/cadooz.rb', line 8

def wsdl
  @wsdl
end