Sha256: e77bd5b071fbe2dca1dfb0015d7050a501e2b7c8f51e4c0451b7a0476547f98c

Contents?: true

Size: 625 Bytes

Versions: 26

Compression:

Stored size: 625 Bytes

Contents

class ForestLiana::Model::Collection
  include ActiveModel::Validations
  include ActiveModel::Conversion
  include ActiveModel::Serialization
  extend ActiveModel::Naming

  attr_accessor :name, :fields, :actions, :segments, :only_for_relationships,
    :is_virtual, :is_read_only, :is_searchable, :display_name, :icon,
    :integration, :pagination_type

  def initialize(attributes = {})
    @actions = []
    @segments = []
    @is_searchable = true
    @is_read_only = false

    attributes.each do |name, value|
      send("#{name}=", value)
    end
  end

  def persisted?
    false
  end

  def id
    name
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
forest_liana-1.7.7 app/models/forest_liana/model/collection.rb
forest_liana-1.7.6 app/models/forest_liana/model/collection.rb
forest_liana-1.7.5 app/models/forest_liana/model/collection.rb
forest_liana-1.7.4 app/models/forest_liana/model/collection.rb
forest_liana-1.7.3 app/models/forest_liana/model/collection.rb
forest_liana-1.7.2 app/models/forest_liana/model/collection.rb
forest_liana-1.7.1 app/models/forest_liana/model/collection.rb
forest_liana-1.7.0 app/models/forest_liana/model/collection.rb
forest_liana-1.6.17 app/models/forest_liana/model/collection.rb
forest_liana-1.6.16 app/models/forest_liana/model/collection.rb
forest_liana-1.6.15 app/models/forest_liana/model/collection.rb
forest_liana-1.6.14 app/models/forest_liana/model/collection.rb
forest_liana-1.6.13 app/models/forest_liana/model/collection.rb
forest_liana-1.6.12 app/models/forest_liana/model/collection.rb
forest_liana-1.6.11 app/models/forest_liana/model/collection.rb
forest_liana-1.6.10 app/models/forest_liana/model/collection.rb
forest_liana-1.6.7 app/models/forest_liana/model/collection.rb
forest_liana-1.6.6 app/models/forest_liana/model/collection.rb
forest_liana-1.6.5 app/models/forest_liana/model/collection.rb
forest_liana-1.6.4 app/models/forest_liana/model/collection.rb