lib/mousetrap/subscription.rb in cameroncox-mousetrap-0.5.3.9 vs lib/mousetrap/subscription.rb in cameroncox-mousetrap-0.5.3.10

- old
+ new

@@ -53,13 +53,13 @@ end def current_invoice invoice_record = if invoices['invoice'].kind_of?(Array) Invoice.new({ - :id => invoices['invoice']['0']['id'], - :number => invoices['invoice']['0']['number'], - :created_at => invoices['invoice']['0']['createdDatetime'], - :billing_date => invoices['invoice']['0']['billingDatetime'] + :id => invoices['invoice'][0]['id'], + :number => invoices['invoice'][0]['number'], + :created_at => invoices['invoice'][0]['createdDatetime'], + :billing_date => invoices['invoice'][0]['billingDatetime'] }) else Invoice.new({ :id => invoices['invoice']['id'], :number => invoices['invoice']['number'],