Module: FbGraph2::Util

Defined in:
lib/fb_graph2/util.rb

Class Method Summary collapse

Class Method Details

.as_identifier(object) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/fb_graph2/util.rb', line 5

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