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