Method: Facebooker::User#convert_attachment_to_json

Defined in:
lib/facebooker/models/user.rb

#convert_attachment_to_json(attachment) ⇒ Object



172
173
174
175
# File 'lib/facebooker/models/user.rb', line 172

def convert_attachment_to_json(attachment)
  a = attachment.respond_to?(:to_hash) ? attachment.to_hash : attachment
  Facebooker.json_encode(a)
end