class Infobeep::BaseRequestModel

Public Instance Methods

headers() click to toggle source
# File lib/infobeep/requests/base_request_model.rb, line 14
def headers
  if http_method == :get
    {params: hash_attributes}
  else
    {}
  end
end
payload() click to toggle source
# File lib/infobeep/requests/base_request_model.rb, line 6
def payload
  if http_method == :get
    nil
  else
    hash_attributes.to_json
  end
end