class Recurly::Request
This class represents a request to Recurly
. It's used to validate requests data as well as cast and serialize the request data to JSON.
Attributes
attributes[R]
Public Class Methods
new(attributes = {})
click to toggle source
# File lib/recurly/request.rb, line 23 def initialize(attributes = {}) @attributes = self.class.cast_request(attributes) end
Public Instance Methods
==(other_resource)
click to toggle source
# File lib/recurly/request.rb, line 13 def ==(other_resource) self.attributes == other_resource.attributes end
to_s()
click to toggle source
# File lib/recurly/request.rb, line 17 def to_s self.inspect end
Protected Instance Methods
schema()
click to toggle source
# File lib/recurly/request.rb, line 27 def schema self.class.schema end