Sha256: 62ee40be44196f3a6961b33a9b0d908e90ca74911af12ac52c6df37e0b8eba22

Contents?: true

Size: 408 Bytes

Versions: 4

Compression:

Stored size: 408 Bytes

Contents

module BloomRemitClient
  module Requests
    module Senders
      class Create < Base

        PATH = "/api/v1/partners/:token/senders.json"

        attribute :sender, Hash

        private

        def path
          PATH.gsub(":token", self.api_token)
        end

        def type
          POST
        end

        def body_params
          { sender: sender }
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bloom_remit_client-0.7.1 lib/bloom_remit_client/requests/senders/create.rb
bloom_remit_client-0.7.0 lib/bloom_remit_client/requests/senders/create.rb
bloom_remit_client-0.6.0 lib/bloom_remit_client/requests/senders/create.rb
bloom_remit_client-0.5.0 lib/bloom_remit_client/requests/senders/create.rb