Sha256: 0b378f0c9b7964441f6798e4a01cdd6ec46bf1cb17ac22793ef0776fba1e5996
Contents?: true
Size: 1.25 KB
Versions: 4
Compression:
Stored size: 1.25 KB
Contents
require_relative '../lib/remote_model' require_relative '../search/event_search' module RescueGroups class Event < RemoteModel belongs_to :organization class << self # method :object_type # purpose: Define this class's object_type used by the # the Queryable module when composing remote queries # param: none # return: <Symbol> - the value of the object_type def object_type :events end # method :object_fields # purpose: Define this class's object fields class used by the # the Queryable module when composing remote queries # param: none # return: <Constant> - the class containing the list of fields # pertinent to this class def object_fields EventField end # method :search_engine_class # purpose: Define which search engine is used by the class. The Queryable # module uses the search engine when constructing remote queries to make # # param: none # return: <Constant> - the class that contains search data pertinent to this class def search_engine_class EventSearch end end attr_accessor *object_fields::FIELDS.keys end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rescue_groups-1.2.0 | models/event.rb |
rescue_groups-1.1.0 | models/event.rb |
rescue_groups-1.0.0 | models/event.rb |
rescue_groups-0.0.1 | models/event.rb |