class HornOfPlenty::Request
Public Instance Methods
query_class()
click to toggle source
# File lib/horn_of_plenty/request.rb, line 19 def query_class @query_class ||= begin query_class_name = self.class.name.gsub(/::Requests/, '::Queries') underscored_query_class_name = HornOfPlenty::CoreExt::String.underscore( query_class_name, ) require underscored_query_class_name HornOfPlenty::CoreExt::String.constantize(query_class_name) end end
response_class()
click to toggle source
# File lib/horn_of_plenty/request.rb, line 6 def response_class @response_class ||= begin response_class_name = self.class.name.gsub(/::Requests/, '::Responses') underscored_response_class_name = HornOfPlenty::CoreExt::String.underscore( response_class_name, ) require underscored_response_class_name HornOfPlenty::CoreExt::String.constantize(response_class_name) end end