Class: Call::Trigger
- Inherits:
-
Object
- Object
- Call::Trigger
- Defined in:
- lib/call/trigger.rb
Class Attribute Summary collapse
-
.response_class ⇒ Object
Returns the value of attribute response_class.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Trigger
constructor
A new instance of Trigger.
Constructor Details
#initialize(&block) ⇒ Trigger
Returns a new instance of Trigger.
7 8 9 10 |
# File 'lib/call/trigger.rb', line 7 def initialize(&block) raise ArgumentError, 'Block required' if block.nil? @callback = block end |
Class Attribute Details
.response_class ⇒ Object
Returns the value of attribute response_class.
4 5 6 |
# File 'lib/call/trigger.rb', line 4 def response_class @response_class end |