class Facebooker::Feed::TemplatizedAction

Representation of a templatized action to be published into a user’s news feed

Attributes

body_data[RW]
body_general[RW]
body_template[RW]
page_actor_id[RW]
target_ids[RW]
title_data[RW]
title_template[RW]

Public Instance Methods

convert_json(hash_or_string) click to toggle source
# File lib/facebooker/feed.rb, line 52
def convert_json(hash_or_string)    
  (hash_or_string.is_a?(Hash) and hash_or_string.respond_to?(:to_json)) ? hash_or_string.to_json : hash_or_string
end
to_params() click to toggle source
# File lib/facebooker/feed.rb, line 41
def to_params
 raise "Must set title_template" if self.title_template.nil?
 { :page_actor_id => page_actor_id, 
   :title_template => title_template, 
   :title_data => convert_json(title_data),
   :body_template => body_template, 
   :body_data => convert_json(body_data), 
   :body_general => body_general,
   :target_ids => target_ids }.merge image_params
end