Class: Oncall::Core::Request
- Inherits:
-
Object
- Object
- Oncall::Core::Request
- Defined in:
- lib/oncall/core/request.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(&block) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(&block) ⇒ Request
Returns a new instance of Request.
4 5 6 |
# File 'lib/oncall/core/request.rb', line 4 def initialize(&block) @proc = Proc.new &block end |
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'lib/oncall/core/request.rb', line 8 def call @proc.call end |