Class Facebooker::Feed::Story
In: lib/facebooker/feed.rb
Parent: ActionBase

Representation of a story to be published into a user‘s news feed.

Methods

to_params  

Attributes

body  [RW] 
title  [RW] 

Public Instance methods

Converts Story to a Hash of its attributes for use as parameters to Facebook REST API calls

[Source]

# File lib/facebooker/feed.rb, line 64
      def to_params
        raise "Must set title before converting" if self.title.nil?
        { :title => title, :body => body }.merge image_params
      end

[Validate]