lib/mousetrap/subscription.rb in cameroncox-mousetrap-0.5.2 vs lib/mousetrap/subscription.rb in cameroncox-mousetrap-0.5.3
- old
+ new
@@ -18,11 +18,12 @@
:id,
:canceled_at,
:created_at,
:credit_card_expiration_date,
:credit_card_last_four_digits,
- :credit_card_type
+ :credit_card_type,
+ :items
def self.[](code)
raise_api_unsupported_error
end
@@ -121,9 +122,10 @@
:canceled_at => attributes['canceledDatetime'],
:created_at => attributes['createdDatetime'],
:credit_card_expiration_date => attributes['ccExpirationDate'],
:credit_card_last_four_digits => attributes['ccLastFour'],
:credit_card_type => attributes['ccType'],
+ :items => attributes['items']
}
end
end
end