lib/mousetrap/plan.rb in cameroncox-mousetrap-0.5.3.10 vs lib/mousetrap/plan.rb in cameroncox-mousetrap-0.6.1

- old
+ new

@@ -4,11 +4,10 @@ :code, :name, :items, :recurring_charge_amount - def self.all response = get_resources plural_resource_name return [] unless response['plans'] build_resources_from response end @@ -23,13 +22,13 @@ 'plan' end def self.attributes_from_api(attributes) { - :code => attributes['code'], - :name => attributes['name'], - :items => attributes['items'], - :recurring_charge_amount => attributes['recurringChargeAmount'] + :code => attributes['code'], + :name => attributes['name'], + :items => attributes['items'], + :recurring_charge_amount => attributes['recurringChargeAmount'] } end end end