Class: ForestLiana::Model::Collection
- Inherits:
-
Object
- Object
- ForestLiana::Model::Collection
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Conversion, ActiveModel::Serialization, ActiveModel::Validations
- Defined in:
- app/models/forest_liana/model/collection.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#integration ⇒ Object
Returns the value of attribute integration.
-
#is_read_only ⇒ Object
Returns the value of attribute is_read_only.
-
#is_searchable ⇒ Object
Returns the value of attribute is_searchable.
-
#is_virtual ⇒ Object
Returns the value of attribute is_virtual.
-
#name ⇒ Object
Returns the value of attribute name.
-
#only_for_relationships ⇒ Object
Returns the value of attribute only_for_relationships.
-
#pagination_type ⇒ Object
Returns the value of attribute pagination_type.
-
#segments ⇒ Object
Returns the value of attribute segments.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(attributes = {}) ⇒ Collection
constructor
A new instance of Collection.
- #persisted? ⇒ Boolean
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
#actions ⇒ Object
Returns the value of attribute actions.
7 8 9 |
# File 'app/models/forest_liana/model/collection.rb', line 7 def actions @actions end |
#display_name ⇒ Object
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 |
#fields ⇒ Object
Returns the value of attribute fields.
7 8 9 |
# File 'app/models/forest_liana/model/collection.rb', line 7 def fields @fields end |
#icon ⇒ Object
Returns the value of attribute icon.
7 8 9 |
# File 'app/models/forest_liana/model/collection.rb', line 7 def icon @icon end |
#integration ⇒ Object
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_only ⇒ Object
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_searchable ⇒ Object
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_virtual ⇒ Object
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 |
#name ⇒ Object
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_relationships ⇒ Object
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_type ⇒ Object
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 |
#segments ⇒ Object
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
#id ⇒ Object
26 27 28 |
# File 'app/models/forest_liana/model/collection.rb', line 26 def id name end |
#persisted? ⇒ Boolean
22 23 24 |
# File 'app/models/forest_liana/model/collection.rb', line 22 def persisted? false end |