Class: DineroMailCheckout::Configuration

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#country_idObject

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

#currencyObject

Returns the value of attribute currency.



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

def currency
  @currency
end

#error_urlObject

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_urlObject

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

#merchantObject

Returns the value of attribute merchant.



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

def merchant
  @merchant
end

#payment_methodObject

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_urlObject

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_urlObject

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