Class: Tagalus::Tag
Overview
Tag
Represents a tag retrieved or posted to tagal.us. Fields available:
[:id] - the ID of the definition
[:tag] - the name of the tag being defined
[:updated_at] - When the comment was last updated
[:created_at] - When the comment was initially created
Instance Attribute Summary collapse
-
#definitions ⇒ Object
Returns the value of attribute definitions.
Instance Method Summary collapse
Methods inherited from XMLStruct
field, #initialize, #parse_xml
Methods included from CanParse
#xml_attribute, #xml_content, #xml_doc, #xpath
Constructor Details
This class inherits a constructor from XMLStruct
Instance Attribute Details
#definitions ⇒ Object
Returns the value of attribute definitions.
169 170 171 |
# File 'lib/tagalus.rb', line 169 def definitions @definitions end |
Instance Method Details
#post_initialize ⇒ Object
174 |
# File 'lib/tagalus.rb', line 174 def post_initialize; @id = @id.to_i; end |