Module: Rea::MetaType::Event::ClassMethods

Defined in:
lib/rea/meta_type/event.rb

Instance Method Summary collapse

Instance Method Details

#provider(klass, options = {}) ⇒ Object



27
28
29
# File 'lib/rea/meta_type/event.rb', line 27

def provider klass, options={}
  define_belongs_to_relation :provider, klass, options
end

#recipient(klass, options = {}) ⇒ Object



30
31
32
# File 'lib/rea/meta_type/event.rb', line 30

def recipient klass, options={}
  define_belongs_to_relation :recipient, klass, options
end

#resource(klass, options = {}) ⇒ Object



33
34
35
# File 'lib/rea/meta_type/event.rb', line 33

def resource klass, options={}
  define_belongs_to_relation :resource, klass, options
end