Sha256: 2f9c01ae1479929bc923a3dba71ca58eb6349e80a972576fbb877cf1e74e766d

Contents?: true

Size: 745 Bytes

Versions: 7

Compression:

Stored size: 745 Bytes

Contents

require 'chronicle/etl/models/base'

module Chronicle
  module ETL
    module Models
      class Entity < Chronicle::ETL::Models::Base
        TYPE = 'entities'.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,
          :containers # inverse of above
        ].freeze  # TODO: add these to reflect Chronicle Schema

        attr_accessor(*ATTRIBUTES, *ASSOCIATIONS)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chronicle-etl-0.5.2 lib/chronicle/etl/models/entity.rb
chronicle-etl-0.5.1 lib/chronicle/etl/models/entity.rb
chronicle-etl-0.5.0 lib/chronicle/etl/models/entity.rb
chronicle-etl-0.4.4 lib/chronicle/etl/models/entity.rb
chronicle-etl-0.4.3 lib/chronicle/etl/models/entity.rb
chronicle-etl-0.4.2 lib/chronicle/etl/models/entity.rb
chronicle-etl-0.4.1 lib/chronicle/etl/models/entity.rb