Class: SlimpayClient::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/slimpay_client/configuration.rb', line 15

def initialize
  @client_id = SlimpayClient::SANDBOX_CLIENT_ID
  @client_secret = SlimpayClient::SANDBOX_SECRET_ID
  @creditor_reference = SlimpayClient::SANDBOX_CREDITOR
  @sandbox = true
  @success_url = 'localhost:5000'
  @failure_url = 'localhost:5000'
  @cancel_url = 'localhost:5000'
  @return_url = 'localhost:5000'
  @notify_url = 'localhost:5000'
end

Instance Attribute Details

#cancel_urlObject

Returns the value of attribute cancel_url.



9
10
11
# File 'lib/slimpay_client/configuration.rb', line 9

def cancel_url
  @cancel_url
end

#client_idObject

Returns the value of attribute client_id.



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

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



4
5
6
# File 'lib/slimpay_client/configuration.rb', line 4

def client_secret
  @client_secret
end

#creditor_referenceObject

Returns the value of attribute creditor_reference.



5
6
7
# File 'lib/slimpay_client/configuration.rb', line 5

def creditor_reference
  @creditor_reference
end

#failure_urlObject

Returns the value of attribute failure_url.



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

def failure_url
  @failure_url
end

#notify_urlObject

Returns the value of attribute notify_url.



11
12
13
# File 'lib/slimpay_client/configuration.rb', line 11

def notify_url
  @notify_url
end

#passwordObject

Returns the value of attribute password.



13
14
15
# File 'lib/slimpay_client/configuration.rb', line 13

def password
  @password
end

#return_urlObject

Returns the value of attribute return_url.



10
11
12
# File 'lib/slimpay_client/configuration.rb', line 10

def return_url
  @return_url
end

#sandboxObject

Returns the value of attribute sandbox.



6
7
8
# File 'lib/slimpay_client/configuration.rb', line 6

def sandbox
  @sandbox
end

#success_urlObject

Returns the value of attribute success_url.



7
8
9
# File 'lib/slimpay_client/configuration.rb', line 7

def success_url
  @success_url
end

#usernameObject

Returns the value of attribute username.



12
13
14
# File 'lib/slimpay_client/configuration.rb', line 12

def username
  @username
end