Class: CatarsePagarme::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_taxObject

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_keyObject

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_taxObject

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_taxObject

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_taxObject

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_taxObject

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_taxObject

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_feeObject

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_taxObject

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_keyObject

Returns the value of attribute ecr_key.



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

def ecr_key
  @ecr_key
end

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#interest_rateObject

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_keyObject

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_installmentsObject

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_installmentObject

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_taxObject

Returns the value of attribute pagarme_tax.



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

def pagarme_tax
  @pagarme_tax
end

#protocolObject

Returns the value of attribute protocol.



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

def protocol
  @protocol
end

#slip_taxObject

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_intervalObject

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_taxObject

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_taxObject

Returns the value of attribute stone_tax.



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

def stone_tax
  @stone_tax
end

#subdomainObject

Returns the value of attribute subdomain.



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

def subdomain
  @subdomain
end

#use_similityObject

Returns the value of attribute use_simility.



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

def use_simility
  @use_simility
end