Sha256: 828cbd3764f1bdd631989cc180658246fe1d88081de3939655814b2ebb32f9b4

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 Bytes

Contents

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fb_graph2-0.1.0 lib/fb_graph2/edge/translations.rb
fb_graph2-0.0.11 lib/fb_graph2/edge/translations.rb
fb_graph2-0.0.10 lib/fb_graph2/edge/translations.rb
fb_graph2-0.0.9 lib/fb_graph2/edge/translations.rb
fb_graph2-0.0.8 lib/fb_graph2/edge/translations.rb
fb_graph2-0.0.7 lib/fb_graph2/edge/translations.rb