class PagSeguro::PaymentStatus
Constants
- STATUSES
Attributes
id[R]
The payment status id.
Public Class Methods
new(id)
click to toggle source
# File lib/pagseguro/payment_status.rb, line 19 def initialize(id) @id = id end
Public Instance Methods
description()
click to toggle source
# File lib/pagseguro/payment_status.rb, line 35 def description I18n.t(id, scope: "pagseguro.payment_status") end
status()
click to toggle source
Return a readable status.
# File lib/pagseguro/payment_status.rb, line 31 def status STATUSES.fetch(id.to_s) { raise "PagSeguro::PaymentStatus#id isn't mapped" } end