class GMO::PG::GenericRequest
Attributes
path[RW]
Public Class Methods
corresponding_response_class()
click to toggle source
# File lib/gmo-pg/http_resource/generic_request.rb, line 6 def self.corresponding_response_class @corresponding_response_class ||= detect_corresponding_response_class end
Private Class Methods
detect_corresponding_response_class()
click to toggle source
# File lib/gmo-pg/http_resource/generic_request.rb, line 28 def self.detect_corresponding_response_class endpoint = detect_endpoint_module endpoint ? endpoint.const_get(:Response) : nil rescue NameError nil end
detect_endpoint_module()
click to toggle source
# File lib/gmo-pg/http_resource/generic_request.rb, line 16 def self.detect_endpoint_module endpoint = Object.const_get(self.name.split('::')[0...-1].join('::')) endpoint.is_a?(GMO::PG::APIEndpoint) ? endpoint : nil end
detect_endpoint_path()
click to toggle source
# File lib/gmo-pg/http_resource/generic_request.rb, line 21 def self.detect_endpoint_path endpoint = detect_endpoint_module endpoint ? endpoint.endpoint_path : nil rescue NameError nil end