Class: Callapi::Call::Request
- Inherits:
-
Object
- Object
- Callapi::Call::Request
- Defined in:
- lib/callapi/call/request.rb
Defined Under Namespace
Classes: Api, Base, Http, Mock
Instance Method Summary collapse
-
#initialize(context) ⇒ Request
constructor
A new instance of Request.
- #response ⇒ Object
Constructor Details
#initialize(context) ⇒ Request
Returns a new instance of Request.
7 8 9 |
# File 'lib/callapi/call/request.rb', line 7 def initialize(context) @context = context end |
Instance Method Details
#response ⇒ Object
11 12 13 |
# File 'lib/callapi/call/request.rb', line 11 def response @context.strategy.new(@context).response end |