class Facebooker::Feed::Story

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

Attributes

body[RW]
title[RW]

Public Instance Methods

to_params() click to toggle source

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

# 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