classyfire_api/lib/query_resource.rb

10 lines
232 B
Ruby
Raw Normal View History

require 'active_resource'
class QueryResource < ActiveResource::Base
self.site ='http://localhost:3000'
self.element_name = "query"
has_many :entities, class_name: 'EntityResource'
def to_param
self.identifier
end
end