Module: FbGraph2::Edge::Translations

Included in:
App
Defined in:
lib/fb_graph2/edge/translations.rb

Instance Method Summary collapse

Instance Method Details

#translation!(params = {}) ⇒ Object Also known as: translate!



11
12
13
# File 'lib/fb_graph2/edge/translations.rb', line 11

def translation!(params = {})
  self.post params, edge: :translations
end

#translations(params = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/fb_graph2/edge/translations.rb', line 4

def translations(params = {})
  translations = self.edge :translations, params
  translations.collect! do |translation|
    Translation.new(translation[:id], translation).authenticate self.authenticate
  end
end