Class: Ecocash::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ecocash/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/ecocash/configuration.rb', line 23

def initialize
  @username = nil
  @password = nil
  @notify_url = nil
  @refund_remarks = nil
  @payment_remarks = nil
  @on_behalf_of = nil
  @merchant_code = nil
  @merchant_pin = nil
  @merchant_number = nil
  @country_code = nil
  @api_base_url = nil
  @currency_code = nil
  @terminal_id = nil
  @location = nil
  @super_merchant_name = nil
  @merchant_name = nil
  @purchase_category_code = nil
  @description = nil
  @reference_code = nil
end

Instance Attribute Details

#api_base_urlObject

Returns the value of attribute api_base_url.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def api_base_url
  @api_base_url
end

#country_codeObject

Returns the value of attribute country_code.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def country_code
  @country_code
end

#currency_codeObject

Returns the value of attribute currency_code.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def currency_code
  @currency_code
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def description
  @description
end

#locationObject

Returns the value of attribute location.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def location
  @location
end

#merchant_codeObject

Returns the value of attribute merchant_code.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def merchant_code
  @merchant_code
end

#merchant_nameObject

Returns the value of attribute merchant_name.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def merchant_name
  @merchant_name
end

#merchant_numberObject

Returns the value of attribute merchant_number.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def merchant_number
  @merchant_number
end

#merchant_pinObject

Returns the value of attribute merchant_pin.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def merchant_pin
  @merchant_pin
end

#notify_urlObject

Returns the value of attribute notify_url.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def notify_url
  @notify_url
end

#on_behalf_ofObject

Returns the value of attribute on_behalf_of.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def on_behalf_of
  @on_behalf_of
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def password
  @password
end

#payment_remarksObject

Returns the value of attribute payment_remarks.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def payment_remarks
  @payment_remarks
end

#purchase_category_codeObject

Returns the value of attribute purchase_category_code.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def purchase_category_code
  @purchase_category_code
end

#reference_codeObject

Returns the value of attribute reference_code.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def reference_code
  @reference_code
end

#refund_remarksObject

Returns the value of attribute refund_remarks.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def refund_remarks
  @refund_remarks
end

#super_merchant_nameObject

Returns the value of attribute super_merchant_name.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def super_merchant_name
  @super_merchant_name
end

#terminal_idObject

Returns the value of attribute terminal_id.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def terminal_id
  @terminal_id
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/ecocash/configuration.rb', line 3

def username
  @username
end