Class: FMyLife::Comment

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

Overview

Comment

Encapsulates a comment on fmylife.com. Belongs to a story. This class can be used for submitting a comment, or for reading them. To submit one, initialize them as follows:

comment = FMyLife::Comment.new(:text => "good story")
fml.comment(story, comment)

Instance Method Summary collapse

Methods inherited from XMLStruct

field, #parse_xml, #post_initialize

Methods included from CanParse

#xml_attribute, #xml_content, #xml_doc, #xpath

Constructor Details

#initialize(opts = {}) ⇒ Comment

Initialize a new comment. Available options are:

:text

The text of the submission

All others will have no effect upon submitting the comment.



454
# File 'lib/fmylife.rb', line 454

def initialize(opts={}); super(opts); end