Class: Tagalus::Definition
Overview
Definition
Represents a definition retrieved or posted on tagal.us. Fields available:
[:id] - the ID of the definition
[:meta_info] - no idea what this is, seems to always be empty
[:tag_id] - the ID of the tag being defined
[:text] - the text of the definition
[:user_id] - the ID of the user posting the comment
[:updated_at] - When the comment was last updated
[:created_at] - When the comment was initially created
[:authority] - The number of up-votes minus the number of down-votes.
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 Method Details
#post_initialize ⇒ Object
196 197 198 |
# File 'lib/tagalus.rb', line 196 def post_initialize @tag_id = @tag_id.to_i; @id = @id.to_i; @user_id = @user_id.to_i end |