lib/moip-assinaturas/invoice.rb in moip-assinaturas-0.0.2 vs lib/moip-assinaturas/invoice.rb in moip-assinaturas-0.0.3

- old
+ new

@@ -3,14 +3,14 @@ class << self def list(subscription_code) response = Moip::Assinaturas::Client.list_invoices(subscription_code) + hash = JSON.load(response.body).with_indifferent_access case response.code when 200 - hash = JSON.load(response.body).with_indifferent_access return { success: true, invoices: hash[:invoices] } else @@ -18,13 +18,13 @@ end end def details(id) response = Moip::Assinaturas::Client.details_invoice(id) + hash = JSON.load(response.body).with_indifferent_access case response.code when 200 - hash = JSON.load(response.body).with_indifferent_access return { success: true, invoice: hash } else \ No newline at end of file