Sha256: c0a2ee269a4cb4440fd34d7d6ec14d5e2347d43b2d60923d149392baa85d6b1c

Contents?: true

Size: 347 Bytes

Versions: 12

Compression:

Stored size: 347 Bytes

Contents

module BloomRemitClient
  module Responses
    module Senders
      class Create < Base

        attribute :sender, Object, lazy: true, default: :default_sender

        def success?
          raw_response.success?
        end

        private

        def default_sender
          User.new(body[:sender])
        end

      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bloom_remit_client-0.15.0 lib/bloom_remit_client/responses/senders/create.rb
bloom_remit_client-0.14.0 lib/bloom_remit_client/responses/senders/create.rb
bloom_remit_client-0.13.0 lib/bloom_remit_client/responses/senders/create.rb
bloom_remit_client-0.12.0 lib/bloom_remit_client/responses/senders/create.rb
bloom_remit_client-0.11.0 lib/bloom_remit_client/responses/senders/create.rb
bloom_remit_client-0.10.0 lib/bloom_remit_client/responses/senders/create.rb
bloom_remit_client-0.9.0 lib/bloom_remit_client/responses/senders/create.rb
bloom_remit_client-0.8.0 lib/bloom_remit_client/responses/senders/create.rb
bloom_remit_client-0.7.1 lib/bloom_remit_client/responses/senders/create.rb
bloom_remit_client-0.7.0 lib/bloom_remit_client/responses/senders/create.rb
bloom_remit_client-0.6.0 lib/bloom_remit_client/responses/senders/create.rb
bloom_remit_client-0.5.0 lib/bloom_remit_client/responses/senders/create.rb