Sha256: a61e6a749961c37bce531e9566aa6b96afbffd4a16aca0e4d012cb97504df76d

Contents?: true

Size: 260 Bytes

Versions: 14

Compression:

Stored size: 260 Bytes

Contents

module FbGraph2
  module Util
    module_function

    def as_identifier(object)
      if object.respond_to? :id
        object.id
      elsif object.respond_to? :as_identifier
        object.as_identifier
      else
        object
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fb_graph2-1.3.0 lib/fb_graph2/util.rb
fb_graph2-1.2.0 lib/fb_graph2/util.rb
fb_graph2-1.1.1 lib/fb_graph2/util.rb
fb_graph2-1.1.0 lib/fb_graph2/util.rb
fb_graph2-1.0.1 lib/fb_graph2/util.rb
fb_graph2-1.0.0 lib/fb_graph2/util.rb
fb_graph2-0.9.1 lib/fb_graph2/util.rb
fb_graph2-0.9.0 lib/fb_graph2/util.rb
fb_graph2-0.8.0 lib/fb_graph2/util.rb
fb_graph2-0.7.9 lib/fb_graph2/util.rb
fb_graph2-0.7.8 lib/fb_graph2/util.rb
fb_graph2-0.7.7 lib/fb_graph2/util.rb
fb_graph2-0.7.6 lib/fb_graph2/util.rb
fb_graph2-0.7.5 lib/fb_graph2/util.rb