Class: Credigy::InstallmentResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/credigy/installment_response.rb

Instance Attribute Summary

Attributes inherited from Response

#raw_response, #requester

Instance Method Summary collapse

Methods inherited from Response

#body, #initialize, #root_key, #sub_root_key

Constructor Details

This class inherits a constructor from Credigy::Response

Instance Method Details

#allObject



7
8
9
10
11
# File 'lib/credigy/installment_response.rb', line 7

def all
  raise(InstallmentNotAvailable, body) if installment_not_available?

  body[:installments][:installment]
end