lib/chronicle/etl/models/entity.rb in chronicle-etl-0.4.0 vs lib/chronicle/etl/models/entity.rb in chronicle-etl-0.4.1
- old
+ new
@@ -3,16 +3,22 @@
module Chronicle
module ETL
module Models
class Entity < Chronicle::ETL::Models::Base
TYPE = 'entities'.freeze
- ATTRIBUTES = [:title, :body, :represents, :slug, :myself, :metadata].freeze
+ ATTRIBUTES = [:title, :body, :provider_url, :represents, :slug, :myself, :metadata].freeze
+
+ # TODO: This desperately needs a validation system
ASSOCIATIONS = [
+ :involvements, # inverse of activity's `involved`
+
:attachments,
:abouts,
+ :aboutables, # inverse of above
:depicts,
:consumers,
- :contains
+ :contains,
+ :containers # inverse of above
].freeze # TODO: add these to reflect Chronicle Schema
attr_accessor(*ATTRIBUTES, *ASSOCIATIONS)
end
end