Class: Tagalus::Tag

Inherits:
XMLStruct show all
Defined in:
lib/tagalus.rb

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

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

#definitionsObject

Returns the value of attribute definitions.



169
170
171
# File 'lib/tagalus.rb', line 169

def definitions
  @definitions
end

Instance Method Details

#post_initializeObject



174
# File 'lib/tagalus.rb', line 174

def post_initialize; @id = @id.to_i; end