Module: EventbriteSDK::Resource::Operations::Relationships
- Included in:
- EventbriteSDK::Resource
- Defined in:
- lib/eventbrite_sdk/resource/operations/relationships.rb
Overview
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
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
132 133 134 135 |
# File 'lib/eventbrite_sdk/resource/operations/relationships.rb', line 132 def self.included(receiver) receiver.extend ClassMethods receiver.send(:include, InstanceMethods) end |