lib/postageapp/request.rb
def arguments_to_send
    hash = {
      'uid' => self.uid,
      'api_key' => self.api_key
    }

    if (self.arguments && !self.arguments.empty?)
      case (self.method.to_sym)
      when :send_message
        if (PostageApp.configuration.recipient_override)
          self.arguments.merge!(
            'recipient_override' => PostageApp.configuration.recipient_override
          )
        end
      end

      hash.merge!(
        'arguments' => self.arguments.recursive_stringify_keys!
      )
    end
    
    hash
  end
# Returns the arguments that will be used to send this request.
Returns the arguments that will be used to send this request.
Returns the arguments that will be used to send this request .
def arguments_to_send
    hash = {
      'uid' => self.uid,
      'api_key' => self.api_key
    }
    if (self.arguments && !self.arguments.empty?)
      case (self.method.to_sym)
      when :send_message
        if (PostageApp.configuration.recipient_override)
          self.arguments.merge!(
            'recipient_override' => PostageApp.configuration.recipient_override
          )
        end
      end
      hash.merge!(
        'arguments' => self.arguments.recursive_stringify_keys!
      )
    end
    hash
  end
def arguments_to_send hash = { 'uid' => self . uid , 'api_key' => self . api_key } if ( self . arguments && ! self . arguments . empty? ) case ( self . method . to_sym ) when :send_message if ( PostageApp . configuration . recipient_override ) self . arguments . merge! ( 'recipient_override' => PostageApp . configuration . recipient_override ) end end hash . merge! ( 'arguments' => self . arguments . recursive_stringify_keys! ) end hash end
Returns the arguments that will be used to send this request.
Returns the arguments that will be used to send this request .