Class: ForestLiana::Model::Collection

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Conversion, ActiveModel::Serialization, ActiveModel::Validations
Defined in:
app/models/forest_liana/model/collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Collection

Returns a new instance of Collection.



11
12
13
14
15
16
17
18
19
20
# File 'app/models/forest_liana/model/collection.rb', line 11

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

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

Instance Attribute Details

#actionsObject

Returns the value of attribute actions.



7
8
9
# File 'app/models/forest_liana/model/collection.rb', line 7

def actions
  @actions
end

#display_nameObject

Returns the value of attribute display_name.



7
8
9
# File 'app/models/forest_liana/model/collection.rb', line 7

def display_name
  @display_name
end

#fieldsObject

Returns the value of attribute fields.



7
8
9
# File 'app/models/forest_liana/model/collection.rb', line 7

def fields
  @fields
end

#iconObject

Returns the value of attribute icon.



7
8
9
# File 'app/models/forest_liana/model/collection.rb', line 7

def icon
  @icon
end

#integrationObject

Returns the value of attribute integration.



7
8
9
# File 'app/models/forest_liana/model/collection.rb', line 7

def integration
  @integration
end

#is_read_onlyObject

Returns the value of attribute is_read_only.



7
8
9
# File 'app/models/forest_liana/model/collection.rb', line 7

def is_read_only
  @is_read_only
end

#is_searchableObject

Returns the value of attribute is_searchable.



7
8
9
# File 'app/models/forest_liana/model/collection.rb', line 7

def is_searchable
  @is_searchable
end

#is_virtualObject

Returns the value of attribute is_virtual.



7
8
9
# File 'app/models/forest_liana/model/collection.rb', line 7

def is_virtual
  @is_virtual
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'app/models/forest_liana/model/collection.rb', line 7

def name
  @name
end

#only_for_relationshipsObject

Returns the value of attribute only_for_relationships.



7
8
9
# File 'app/models/forest_liana/model/collection.rb', line 7

def only_for_relationships
  @only_for_relationships
end

#pagination_typeObject

Returns the value of attribute pagination_type.



7
8
9
# File 'app/models/forest_liana/model/collection.rb', line 7

def pagination_type
  @pagination_type
end

#segmentsObject

Returns the value of attribute segments.



7
8
9
# File 'app/models/forest_liana/model/collection.rb', line 7

def segments
  @segments
end

Instance Method Details

#idObject



26
27
28
# File 'app/models/forest_liana/model/collection.rb', line 26

def id
  name
end

#persisted?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/forest_liana/model/collection.rb', line 22

def persisted?
  false
end