Class: Siilar::Struct::TagCollection
- Defined in:
- lib/siilar/struct/tag_collection.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Siilar::Struct::Base
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/siilar/struct/tag_collection.rb', line 5 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/siilar/struct/tag_collection.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/siilar/struct/tag_collection.rb', line 5 def name @name end |
Instance Method Details
#tags ⇒ Object
7 8 9 |
# File 'lib/siilar/struct/tag_collection.rb', line 7 def ||= [] end |
#tags=(attrs) ⇒ Object
11 12 13 14 15 |
# File 'lib/siilar/struct/tag_collection.rb', line 11 def (attrs) if attrs = attrs.map { |tag| Struct::Tag.new(tag) } end end |