2014-07-09 22:22:43 +01:00
|
|
|
require 'active_resource'
|
|
|
|
|
|
|
|
class QueryResource < ActiveResource::Base
|
2016-03-10 02:26:59 +00:00
|
|
|
self.site ='http://classyfire.wishartlab.com'
|
2014-07-09 22:22:43 +01:00
|
|
|
self.element_name = "query"
|
|
|
|
has_many :entities, class_name: 'EntityResource'
|
|
|
|
def to_param
|
|
|
|
self.identifier
|
|
|
|
end
|
|
|
|
end
|