Sha256: 8904eef36eaf43594c96b6e5ec195e502dad1a8aacf5c2114778796e36e5b806
Contents?: true
Size: 588 Bytes
Versions: 4
Compression:
Stored size: 588 Bytes
Contents
module BloomRemitClient module Requests module Recipients class Create < Base PATH = "/api/v1/partners/:api_token/senders/:sender_id/recipients.json" attribute :recipient, Hash attribute :agent_id, String attribute :sender_id, String private def path PATH.gsub(":api_token", self.api_token). gsub(":sender_id", self.sender_id) end def type POST end def body_params attributes.slice(*%i[agent_id recipient]) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems