Class: PensioAPI::Responses::SubscriptionCharge
- Inherits:
-
Transaction
show all
- Extended by:
- Forwardable
- Defined in:
- lib/pensio_api/responses/subscription_charge.rb
Instance Attribute Summary
Attributes inherited from Base
#raw
Instance Method Summary
collapse
Methods inherited from Transaction
#initialize
included, #last
Methods inherited from Base
#initialize, #success?
#method_missing
Instance Method Details
#each ⇒ Object
8
9
10
|
# File 'lib/pensio_api/responses/subscription_charge.rb', line 8
def each
[existing, new].each { |t| yield t }
end
|
#existing ⇒ Object
12
13
14
|
# File 'lib/pensio_api/responses/subscription_charge.rb', line 12
def existing
@transactions.first
end
|
#new ⇒ Object
16
17
18
|
# File 'lib/pensio_api/responses/subscription_charge.rb', line 16
def new
@transactions.last
end
|