Class: Pixaven::Request::Fetch

Inherits:
Base
  • Object
show all
Defined in:
lib/pixaven/request.rb

Overview

Responsible for handling Fetch requests

Constant Summary

Constants inherited from Base

Base::API_URL

Instance Attribute Summary

Attributes inherited from Base

#data, #proxy, #type

Instance Method Summary collapse

Methods inherited from Base

#perform

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_dataObject

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