Class: Userlist::Push::Relation
- Inherits:
-
Object
- Object
- Userlist::Push::Relation
- Defined in:
- lib/userlist/push/relation.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(scope, type, operations = []) ⇒ Relation
constructor
A new instance of Relation.
Constructor Details
#initialize(scope, type, operations = []) ⇒ Relation
4 5 6 7 8 9 |
# File 'lib/userlist/push/relation.rb', line 4 def initialize(scope, type, operations = []) @scope = scope @type = type operations.each { |operation| singleton_class.send(:include, operation::ClassMethods) } end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
11 12 13 |
# File 'lib/userlist/push/relation.rb', line 11 def scope @scope end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/userlist/push/relation.rb', line 11 def type @type end |