Class: Zaala::API::InfoResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Zaala::API::InfoResponse
- Defined in:
- lib/zaala/api/types.rb
Overview
The class InfoResponse represents the response of the Info service call.
Class Method Summary collapse
Class Method Details
.from_message(h) ⇒ Object
778 779 780 781 782 783 784 785 |
# File 'lib/zaala/api/types.rb', line 778 def self.(h) InfoResponse.new({ identifier: Zaala::API::ResponseIdentifier.(h[:identifier]), decision: Zaala::API::Decision.(h[:decision]), installment_plan: h[:installmentPlan] ? Zaala::API::InstallmentPlan.(h[:installmentPlan]) : nil, info: h[:info] ? Zaala::API::Info.(h[:info]) : nil, }) end |