Class: Commute::Typhoeus::ContextualRequest

Inherits:
Typhoeus::Request
  • Object
show all
Defined in:
lib/commute/adapters/typhoeus.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context, url, options = {}) ⇒ ContextualRequest

Returns a new instance of ContextualRequest.



7
8
9
10
# File 'lib/commute/adapters/typhoeus.rb', line 7

def initialize context, url, options = {}
  @context = context
  super(url, options)
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



5
6
7
# File 'lib/commute/adapters/typhoeus.rb', line 5

def context
  @context
end