lib/mousetrap/plan.rb in cameroncox-mousetrap-0.5.3.2 vs lib/mousetrap/plan.rb in cameroncox-mousetrap-0.5.3.3

- old
+ new

@@ -1,11 +1,12 @@ module Mousetrap class Plan < Resource attr_accessor \ :code, :name, - :items + :items, + :recurring_charge_amount def self.all response = get_resources plural_resource_name return [] unless response['plans'] build_resources_from response @@ -23,10 +24,11 @@ def self.attributes_from_api(attributes) { :code => attributes['code'], :name => attributes['name'], - :items => attributes['items'] + :items => attributes['items'], + :recurring_charge_amount => attributes['recurringChargeAmount'] } end end end