Class: Pixaven::Request::Fetch
Overview
Responsible for handling Fetch requests
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(key) ⇒ Fetch
constructor
A new instance of Fetch.
-
#request_data ⇒ Object
Returns fetch request data, which is a simple JSON.
Methods inherited from Base
Constructor Details
#initialize(key) ⇒ Fetch
Returns a new instance of Fetch.
83 84 85 86 |
# File 'lib/pixaven/request.rb', line 83 def initialize(key) @type = :fetch super(key) end |
Instance Method Details
#request_data ⇒ Object
Returns fetch request data, which is a simple JSON
91 92 93 |
# File 'lib/pixaven/request.rb', line 91 def request_data @data.to_json end |