Class: Bygpay::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/bygpay/configuration.rb', line 7

def initialize
  @base_url = nil
  @api_key = nil

  # Preset default paths but allow for changes
  @deposit_mobile_path = '/deposits/mobile'
  @deposit_status_overide_path = '/deposits/status-overide'
  @deposit_status_path = '/deposits'

  @withdraw_mobile_path = '/withdrawals/mobile'
  @withdraw_status_overide_path = '/withdrawals/status-overide'
  @withdraw_status_path = '/withdrawals'
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#base_urlObject

Returns the value of attribute base_url.



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

def base_url
  @base_url
end

#deposit_mobile_pathObject

Returns the value of attribute deposit_mobile_path.



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

def deposit_mobile_path
  @deposit_mobile_path
end

#deposit_status_overide_pathObject

Returns the value of attribute deposit_status_overide_path.



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

def deposit_status_overide_path
  @deposit_status_overide_path
end

#deposit_status_pathObject

Returns the value of attribute deposit_status_path.



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

def deposit_status_path
  @deposit_status_path
end

#withdraw_mobile_pathObject

Returns the value of attribute withdraw_mobile_path.



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

def withdraw_mobile_path
  @withdraw_mobile_path
end

#withdraw_status_overide_pathObject

Returns the value of attribute withdraw_status_overide_path.



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

def withdraw_status_overide_path
  @withdraw_status_overide_path
end

#withdraw_status_pathObject

Returns the value of attribute withdraw_status_path.



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

def withdraw_status_path
  @withdraw_status_path
end