Class: Callapi::Call::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/callapi/call/request.rb

Defined Under Namespace

Classes: Api, Base, Http, Mock

Instance Method Summary collapse

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

#responseObject



11
12
13
# File 'lib/callapi/call/request.rb', line 11

def response
  @context.strategy.new(@context).response
end