Sha256: bddbc82b717ab144598d0a95f7c842dfa6f20f45c6d626eda9396edb217eda84

Contents?: true

Size: 407 Bytes

Versions: 3

Compression:

Stored size: 407 Bytes

Contents

module BluepanClient
  class CreateRemittanceResponse < BaseResponse

    attribute :remittance, Object, lazy: true, default: :default_remittance
    attribute :recipient, Object, lazy: true, default: :default_recipient

    private

    def default_remittance
      Remittance.new(parsed_body[:remittance])
    end

    def default_recipient
      Recipient.new(parsed_body[:recipient])
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bluepan_client-1.0.0 lib/bluepan_client/responses/create_remittance_response.rb
bluepan_client-0.4.0 lib/bluepan_client/responses/create_remittance_response.rb
bluepan_client-0.3.0 lib/bluepan_client/responses/create_remittance_response.rb