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
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