Class: CubanLinx::Collaborator
- Inherits:
-
Object
- Object
- CubanLinx::Collaborator
- Defined in:
- lib/cuban_linx/collaborator.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#function ⇒ Object
readonly
Returns the value of attribute function.
Instance Method Summary collapse
- #call(payload) ⇒ Object
-
#initialize(context, function) ⇒ Collaborator
constructor
A new instance of Collaborator.
Constructor Details
#initialize(context, function) ⇒ Collaborator
Returns a new instance of Collaborator.
3 4 5 6 |
# File 'lib/cuban_linx/collaborator.rb', line 3 def initialize(context, function) @context = context @function = function end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
8 9 10 |
# File 'lib/cuban_linx/collaborator.rb', line 8 def context @context end |
#function ⇒ Object (readonly)
Returns the value of attribute function.
8 9 10 |
# File 'lib/cuban_linx/collaborator.rb', line 8 def function @function end |