class FastSpring::Payment
Attributes
currency[R]
declined_reason[R]
method_type[R]
status[R]
status_changed[R]
total[R]
Public Class Methods
new(details)
click to toggle source
# File lib/fastspring-saasy/payment.rb, line 6 def initialize(details) @status = details.fetch('status') @status_changed = Date.parse(details.fetch('statusChanged')) @declined_reason = details.fetch('declinedReason') @currency = details.fetch('currency') @total = details.fetch('total').to_f end