class PagSeguro::PaymentMethod
Constants
- TYPES
Attributes
code[RW]
The payment method code.
type_id[RW]
The payment method type.
Public Instance Methods
description()
click to toggle source
Return the payment method’s description.
# File lib/pagseguro/payment_method.rb, line 34 def description I18n.t(code, scope: "pagseguro.payment_methods") end
type()
click to toggle source
Return the type in a readable manner.
# File lib/pagseguro/payment_method.rb, line 29 def type TYPES.fetch(type_id.to_s) { raise "PagSeguro::PaymentMethod#type_id isn't mapped" } end