Class: Tagalus::Comment
Overview
Comment
Represents a comment retrieved from tagal.us. Fields available:
[:id] - the ID of the comment
[:meta_info] - no idea what this is, seems to always be empty
[:tag_id] - the ID of the tag
[:text] - the text of the comment
[: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
Instance Method Summary collapse
-
#post_initialize ⇒ Object
:nodoc:.
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
:nodoc:
218 219 220 |
# File 'lib/tagalus.rb', line 218 def post_initialize #:nodoc: @tag_id = @tag_id.to_i; @id = @id.to_i; @user_id = @user_id.to_i end |