Module: Rea::MetaType::Event::ClassMethods
- Defined in:
- lib/rea/meta_type/event.rb
Instance Method Summary collapse
- #provider(klass, options = {}) ⇒ Object
- #recipient(klass, options = {}) ⇒ Object
- #resource(klass, options = {}) ⇒ Object
Instance Method Details
#provider(klass, options = {}) ⇒ Object
27 28 29 |
# File 'lib/rea/meta_type/event.rb', line 27 def provider klass, ={} define_belongs_to_relation :provider, klass, end |
#recipient(klass, options = {}) ⇒ Object
30 31 32 |
# File 'lib/rea/meta_type/event.rb', line 30 def recipient klass, ={} define_belongs_to_relation :recipient, klass, end |
#resource(klass, options = {}) ⇒ Object
33 34 35 |
# File 'lib/rea/meta_type/event.rb', line 33 def resource klass, ={} define_belongs_to_relation :resource, klass, end |