Class: Commute::Typhoeus::ContextualRequest
- Inherits:
-
Typhoeus::Request
- Object
- Typhoeus::Request
- Commute::Typhoeus::ContextualRequest
- Defined in:
- lib/commute/adapters/typhoeus.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(context, url, options = {}) ⇒ ContextualRequest
constructor
A new instance of ContextualRequest.
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, = {} @context = context super(url, ) end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
5 6 7 |
# File 'lib/commute/adapters/typhoeus.rb', line 5 def context @context end |