Class: Eventifier::Relationship
- Inherits:
-
Object
- Object
- Eventifier::Relationship
- Defined in:
- lib/eventifier/relationship.rb
Instance Method Summary collapse
-
#initialize(source, relation) ⇒ Relationship
constructor
A new instance of Relationship.
- #key ⇒ Object
- #users ⇒ Object
Constructor Details
#initialize(source, relation) ⇒ Relationship
Returns a new instance of Relationship.
2 3 4 |
# File 'lib/eventifier/relationship.rb', line 2 def initialize(source, relation) @source, @relation = source, relation end |
Instance Method Details
#key ⇒ Object
6 7 8 |
# File 'lib/eventifier/relationship.rb', line 6 def key key_from relation end |
#users ⇒ Object
10 11 12 |
# File 'lib/eventifier/relationship.rb', line 10 def users Array object.send(method) end |