class Pandexio::Request
Constants
- LINE_BREAK
Attributes
headers[RW]
method[RW]
path[RW]
payload[RW]
query_parameters[RW]
Public Class Methods
new(params = {})
click to toggle source
# File lib/request.rb, line 8 def initialize(params = {}) @method = params.fetch(:method, nil) @path = params.fetch(:path, nil) @query_parameters = params.fetch(:query_parameters, {}) @headers = params.fetch(:headers, {}) @payload = params.fetch(:payload, nil) end
Public Instance Methods
to_s()
click to toggle source
# File lib/request.rb, line 22 def to_s "#{@method} #{@path}#{LINE_BREAK}query_parameters: #{query_parameters}#{LINE_BREAK}headers: #{headers}#{LINE_BREAK}payload: #{payload}" end