class Recurly::HTTP::Request

Attributes

body[RW]
method[RW]
path[RW]

Public Class Methods

new(method, path, body = nil) click to toggle source
# File lib/recurly/http.rb, line 33
def initialize(method, path, body = nil)
  @method = method
  @path = path
  if body && !body.empty?
    @body = body
  else
    @body = nil
  end
end

Public Instance Methods

==(other) click to toggle source
# File lib/recurly/http.rb, line 43
def ==(other)
  method == other.method \
    && path == other.path \
    && body == other.body
end