Module: Zuck::FbObject::DSL

Included in:
RawFbObject
Defined in:
lib/zuck/fb_object/dsl.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
# File 'lib/zuck/fb_object/dsl.rb', line 7

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#pathString

Returns Most facebook objects will need to return their id property here, so that's the default. Overwrite if necessary.

Returns:

  • (String)

    Most facebook objects will need to return their id property here, so that's the default. Overwrite if necessary



13
14
15
# File 'lib/zuck/fb_object/dsl.rb', line 13

def path
  self[:id] or raise "Can't find a path unless I have an id #{self.inspect}"
end