Class: LCBO::CrawlKit::RequestPrototype
- Inherits:
-
Object
- Object
- LCBO::CrawlKit::RequestPrototype
- Defined in:
- lib/lcbo/crawlkit/request_prototype.rb
Instance Attribute Summary collapse
-
#body_params ⇒ Object
Returns the value of attribute body_params.
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#uri_template ⇒ Object
Returns the value of attribute uri_template.
Instance Method Summary collapse
-
#initialize(uri_template = nil, http_method = :get, body_params = {}) ⇒ RequestPrototype
constructor
A new instance of RequestPrototype.
- #request(query_params = {}, body_params = {}) ⇒ Object
Constructor Details
#initialize(uri_template = nil, http_method = :get, body_params = {}) ⇒ RequestPrototype
Returns a new instance of RequestPrototype.
7 8 9 10 11 |
# File 'lib/lcbo/crawlkit/request_prototype.rb', line 7 def initialize(uri_template = nil, http_method = :get, body_params = {}) self.uri_template = uri_template self.http_method = http_method self.body_params = body_params end |
Instance Attribute Details
#body_params ⇒ Object
Returns the value of attribute body_params.
5 6 7 |
# File 'lib/lcbo/crawlkit/request_prototype.rb', line 5 def body_params @body_params end |
#http_method ⇒ Object
Returns the value of attribute http_method.
5 6 7 |
# File 'lib/lcbo/crawlkit/request_prototype.rb', line 5 def http_method @http_method end |
#uri_template ⇒ Object
Returns the value of attribute uri_template.
5 6 7 |
# File 'lib/lcbo/crawlkit/request_prototype.rb', line 5 def uri_template @uri_template end |