Class: Siilar::Struct::Tag

Inherits:
Base
  • Object
show all
Defined in:
lib/siilar/struct/tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Siilar::Struct::Base

Instance Attribute Details

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/siilar/struct/tag.rb', line 5

def id
  @id
end

#synonymsObject

Returns the value of attribute synonyms.



5
6
7
# File 'lib/siilar/struct/tag.rb', line 5

def synonyms
  @synonyms
end

#titleObject

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_collectionObject



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