Class: DineroMailCheckout::Configuration
- Inherits:
-
Object
- Object
- DineroMailCheckout::Configuration
- Defined in:
- lib/dinero_mail_checkout/configuration.rb
Defined Under Namespace
Classes: Currency
Constant Summary collapse
- CHECKOUT_URL =
"https://checkout.dineromail.com/CheckOut"
Instance Attribute Summary collapse
-
#country_id ⇒ Object
Returns the value of attribute country_id.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#error_url ⇒ Object
Returns the value of attribute error_url.
-
#logo_url ⇒ Object
Returns the value of attribute logo_url.
-
#merchant ⇒ Object
Returns the value of attribute merchant.
-
#payment_method ⇒ Object
Returns the value of attribute payment_method.
-
#payment_url ⇒ Object
Returns the value of attribute payment_url.
-
#success_url ⇒ Object
Returns the value of attribute success_url.
Class Method Summary collapse
Instance Attribute Details
#country_id ⇒ Object
Returns the value of attribute country_id.
3 4 5 |
# File 'lib/dinero_mail_checkout/configuration.rb', line 3 def country_id @country_id end |
#currency ⇒ Object
Returns the value of attribute currency.
3 4 5 |
# File 'lib/dinero_mail_checkout/configuration.rb', line 3 def currency @currency end |
#error_url ⇒ Object
Returns the value of attribute error_url.
3 4 5 |
# File 'lib/dinero_mail_checkout/configuration.rb', line 3 def error_url @error_url end |
#logo_url ⇒ Object
Returns the value of attribute logo_url.
3 4 5 |
# File 'lib/dinero_mail_checkout/configuration.rb', line 3 def logo_url @logo_url end |
#merchant ⇒ Object
Returns the value of attribute merchant.
3 4 5 |
# File 'lib/dinero_mail_checkout/configuration.rb', line 3 def merchant @merchant end |
#payment_method ⇒ Object
Returns the value of attribute payment_method.
3 4 5 |
# File 'lib/dinero_mail_checkout/configuration.rb', line 3 def payment_method @payment_method end |
#payment_url ⇒ Object
Returns the value of attribute payment_url.
3 4 5 |
# File 'lib/dinero_mail_checkout/configuration.rb', line 3 def payment_url @payment_url end |
#success_url ⇒ Object
Returns the value of attribute success_url.
3 4 5 |
# File 'lib/dinero_mail_checkout/configuration.rb', line 3 def success_url @success_url end |
Class Method Details
.country_name(id) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/dinero_mail_checkout/configuration.rb', line 14 def country_name(id) case id when 1 then "argentina" when 2 then "brasil" when 3 then "chile" when 4 then "mexico" end end |