Class: CatarsePagarme::Configuration
- Inherits:
-
Object
- Object
- CatarsePagarme::Configuration
- Defined in:
- lib/catarse_pagarme/configuration.rb
Instance Attribute Summary collapse
-
#antifraud_tax ⇒ Object
Returns the value of attribute antifraud_tax.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#cielo_installment_amex_tax ⇒ Object
Returns the value of attribute cielo_installment_amex_tax.
-
#cielo_installment_diners_tax ⇒ Object
Returns the value of attribute cielo_installment_diners_tax.
-
#cielo_installment_not_amex_tax ⇒ Object
Returns the value of attribute cielo_installment_not_amex_tax.
-
#cielo_installment_not_diners_tax ⇒ Object
Returns the value of attribute cielo_installment_not_diners_tax.
-
#cielo_tax ⇒ Object
Returns the value of attribute cielo_tax.
-
#credit_card_cents_fee ⇒ Object
Returns the value of attribute credit_card_cents_fee.
-
#credit_card_tax ⇒ Object
Returns the value of attribute credit_card_tax.
-
#ecr_key ⇒ Object
Returns the value of attribute ecr_key.
-
#host ⇒ Object
Returns the value of attribute host.
-
#interest_rate ⇒ Object
Returns the value of attribute interest_rate.
-
#konduto_api_key ⇒ Object
Returns the value of attribute konduto_api_key.
-
#max_installments ⇒ Object
Returns the value of attribute max_installments.
-
#minimum_value_for_installment ⇒ Object
Returns the value of attribute minimum_value_for_installment.
-
#pagarme_tax ⇒ Object
Returns the value of attribute pagarme_tax.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#slip_tax ⇒ Object
Returns the value of attribute slip_tax.
-
#slip_week_day_interval ⇒ Object
Returns the value of attribute slip_week_day_interval.
-
#stone_installment_tax ⇒ Object
Returns the value of attribute stone_installment_tax.
-
#stone_tax ⇒ Object
Returns the value of attribute stone_tax.
-
#subdomain ⇒ Object
Returns the value of attribute subdomain.
-
#use_simility ⇒ Object
Returns the value of attribute use_simility.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/catarse_pagarme/configuration.rb', line 8 def initialize self.api_key = '' self.konduto_api_key = '' self.ecr_key = '' self.slip_tax = 0 self.credit_card_tax = 0 self.antifraud_tax = 0 self.interest_rate = 0 self.max_installments = 12 self.minimum_value_for_installment = 10 self.credit_card_cents_fee = 0 self.host = 'catarse.me' self.subdomain = 'www' self.protocol = 'http' self.pagarme_tax = 0 self.stone_tax = 0 self.stone_installment_tax = 0 self.cielo_tax = 0 self.cielo_installment_diners_tax = 0 self.cielo_installment_not_diners_tax = 0 self.cielo_installment_amex_tax = 0 self.cielo_installment_not_amex_tax = 0 self.slip_week_day_interval = 2 self.use_simility = true end |
Instance Attribute Details
#antifraud_tax ⇒ Object
Returns the value of attribute antifraud_tax.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def antifraud_tax @antifraud_tax end |
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def api_key @api_key end |
#cielo_installment_amex_tax ⇒ Object
Returns the value of attribute cielo_installment_amex_tax.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def cielo_installment_amex_tax @cielo_installment_amex_tax end |
#cielo_installment_diners_tax ⇒ Object
Returns the value of attribute cielo_installment_diners_tax.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def cielo_installment_diners_tax @cielo_installment_diners_tax end |
#cielo_installment_not_amex_tax ⇒ Object
Returns the value of attribute cielo_installment_not_amex_tax.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def cielo_installment_not_amex_tax @cielo_installment_not_amex_tax end |
#cielo_installment_not_diners_tax ⇒ Object
Returns the value of attribute cielo_installment_not_diners_tax.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def cielo_installment_not_diners_tax @cielo_installment_not_diners_tax end |
#cielo_tax ⇒ Object
Returns the value of attribute cielo_tax.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def cielo_tax @cielo_tax end |
#credit_card_cents_fee ⇒ Object
Returns the value of attribute credit_card_cents_fee.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def credit_card_cents_fee @credit_card_cents_fee end |
#credit_card_tax ⇒ Object
Returns the value of attribute credit_card_tax.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def credit_card_tax @credit_card_tax end |
#ecr_key ⇒ Object
Returns the value of attribute ecr_key.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def ecr_key @ecr_key end |
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def host @host end |
#interest_rate ⇒ Object
Returns the value of attribute interest_rate.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def interest_rate @interest_rate end |
#konduto_api_key ⇒ Object
Returns the value of attribute konduto_api_key.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def konduto_api_key @konduto_api_key end |
#max_installments ⇒ Object
Returns the value of attribute max_installments.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def max_installments @max_installments end |
#minimum_value_for_installment ⇒ Object
Returns the value of attribute minimum_value_for_installment.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def minimum_value_for_installment @minimum_value_for_installment end |
#pagarme_tax ⇒ Object
Returns the value of attribute pagarme_tax.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def pagarme_tax @pagarme_tax end |
#protocol ⇒ Object
Returns the value of attribute protocol.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def protocol @protocol end |
#slip_tax ⇒ Object
Returns the value of attribute slip_tax.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def slip_tax @slip_tax end |
#slip_week_day_interval ⇒ Object
Returns the value of attribute slip_week_day_interval.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def slip_week_day_interval @slip_week_day_interval end |
#stone_installment_tax ⇒ Object
Returns the value of attribute stone_installment_tax.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def stone_installment_tax @stone_installment_tax end |
#stone_tax ⇒ Object
Returns the value of attribute stone_tax.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def stone_tax @stone_tax end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def subdomain @subdomain end |
#use_simility ⇒ Object
Returns the value of attribute use_simility.
3 4 5 |
# File 'lib/catarse_pagarme/configuration.rb', line 3 def use_simility @use_simility end |