Sha256: 9d63711b1f1aca8dba7ac9c766a24e16288b31761ae2a5f1efdd803dd04319d2

Contents?: true

Size: 666 Bytes

Versions: 14

Compression:

Stored size: 666 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, :search_fields

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

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

  def persisted?
    false
  end

  def id
    name
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
forest_liana-1.9.8 app/models/forest_liana/model/collection.rb
forest_liana-1.9.7 app/models/forest_liana/model/collection.rb
forest_liana-1.9.6 app/models/forest_liana/model/collection.rb
forest_liana-1.9.5 app/models/forest_liana/model/collection.rb
forest_liana-1.9.4 app/models/forest_liana/model/collection.rb
forest_liana-1.9.3 app/models/forest_liana/model/collection.rb
forest_liana-1.9.2 app/models/forest_liana/model/collection.rb
forest_liana-1.9.1 app/models/forest_liana/model/collection.rb
forest_liana-1.9.0 app/models/forest_liana/model/collection.rb
forest_liana-1.8.1 app/models/forest_liana/model/collection.rb
forest_liana-1.8.0 app/models/forest_liana/model/collection.rb
forest_liana-1.7.10 app/models/forest_liana/model/collection.rb
forest_liana-1.7.9 app/models/forest_liana/model/collection.rb
forest_liana-1.7.8 app/models/forest_liana/model/collection.rb