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
-
#path ⇒ String
Most facebook objects will need to return their id property here, so that's the default.
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
#path ⇒ String
Returns 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 |