class Modgen::API::APIRequest
Attributes
api_method[R]
Public Class Methods
new(api_method, data)
click to toggle source
Create APIRequest
Parameters:¶ ↑
api_method
- data
-
{ 'path' => {}, 'params' => {}, 'body' => {} }
Calls superclass method
# File lib/modgen/api/api_request.rb, line 19 def initialize(api_method, data) @api_method = api_method super(@api_method.url, data, @api_method.http_method.downcase) end
Private Instance Methods
_response()
click to toggle source
# File lib/modgen/api/api_request.rb, line 27 def _response response = Modgen::Session.get.execute(self) Modgen::API::APIResponse.new(response, self) end