Class: Wirecard::Configuration
- Inherits:
-
Object
- Object
- Wirecard::Configuration
- Defined in:
- lib/wirecard/configuration.rb
Instance Attribute Summary collapse
-
#cancel_url ⇒ Object
Returns the value of attribute cancel_url.
-
#confirm_url ⇒ Object
Returns the value of attribute confirm_url.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#failure_url ⇒ Object
Returns the value of attribute failure_url.
-
#host ⇒ Object
Returns the value of attribute host.
-
#language ⇒ Object
Returns the value of attribute language.
-
#password ⇒ Object
Returns the value of attribute password.
-
#return_url ⇒ Object
Returns the value of attribute return_url.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#service_url ⇒ Object
Returns the value of attribute service_url.
-
#shop_id ⇒ Object
Returns the value of attribute shop_id.
-
#success_url ⇒ Object
Returns the value of attribute success_url.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
34 35 36 37 38 39 |
# File 'lib/wirecard/configuration.rb', line 34 def initialize @user_agent = '### User Agent ###' @endpoint = 'https://checkout.wirecard.com/seamless' @host = 'checkout.wirecard.com' @language = defined?(I18n) ? I18n.default_locale[0..1] : 'en' end |
Instance Attribute Details
#cancel_url ⇒ Object
Returns the value of attribute cancel_url.
26 27 28 |
# File 'lib/wirecard/configuration.rb', line 26 def cancel_url @cancel_url end |
#confirm_url ⇒ Object
Returns the value of attribute confirm_url.
30 31 32 |
# File 'lib/wirecard/configuration.rb', line 30 def confirm_url @confirm_url end |
#currency ⇒ Object
Returns the value of attribute currency.
20 21 22 |
# File 'lib/wirecard/configuration.rb', line 20 def currency @currency end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
4 5 6 |
# File 'lib/wirecard/configuration.rb', line 4 def customer_id @customer_id end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
14 15 16 |
# File 'lib/wirecard/configuration.rb', line 14 def endpoint @endpoint end |
#failure_url ⇒ Object
Returns the value of attribute failure_url.
24 25 26 |
# File 'lib/wirecard/configuration.rb', line 24 def failure_url @failure_url end |
#host ⇒ Object
Returns the value of attribute host.
10 11 12 |
# File 'lib/wirecard/configuration.rb', line 10 def host @host end |
#language ⇒ Object
Returns the value of attribute language.
18 19 20 |
# File 'lib/wirecard/configuration.rb', line 18 def language @language end |
#password ⇒ Object
Returns the value of attribute password.
8 9 10 |
# File 'lib/wirecard/configuration.rb', line 8 def password @password end |
#return_url ⇒ Object
Returns the value of attribute return_url.
32 33 34 |
# File 'lib/wirecard/configuration.rb', line 32 def return_url @return_url end |
#secret ⇒ Object
Returns the value of attribute secret.
16 17 18 |
# File 'lib/wirecard/configuration.rb', line 16 def secret @secret end |
#service_url ⇒ Object
Returns the value of attribute service_url.
28 29 30 |
# File 'lib/wirecard/configuration.rb', line 28 def service_url @service_url end |
#shop_id ⇒ Object
Returns the value of attribute shop_id.
6 7 8 |
# File 'lib/wirecard/configuration.rb', line 6 def shop_id @shop_id end |
#success_url ⇒ Object
Returns the value of attribute success_url.
22 23 24 |
# File 'lib/wirecard/configuration.rb', line 22 def success_url @success_url end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
12 13 14 |
# File 'lib/wirecard/configuration.rb', line 12 def user_agent @user_agent end |