module EventbriteSDK::Resource::Operations::Relationships
Adds belongs_to
and has_many
relationship functionality to Resource
instances
Requires that included class responds_to: :resource_path
returns a path that will be given to the list_class on instantiation must have an arity of 1
:resource_class_from_string
Should constantize the string into the class of the operating relationship
:list_class
Should return the class responsible for handling many of a resource
Public Class Methods
included(receiver)
click to toggle source
# File lib/eventbrite_sdk/resource/operations/relationships.rb, line 132 def self.included(receiver) receiver.extend ClassMethods receiver.send(:include, InstanceMethods) end