Class: Mogli::Action
Instance Attribute Summary
Attributes inherited from Model
Attributes included from Model::Search
Instance Method Summary collapse
-
#to_json(options = nil) ⇒ Object
simple implementation of to_json, ignoring options like :only, :except, :include, :methods because this is primarily intended for being submitted to facebook.
Methods inherited from Model
#==, add_creation_method, #client, #client=, creation_keys, creation_properties, define_properties, #destroy, #fetch, find, has_association, hash_populating_accessor, included, #initialize, #merge!, #method_missing, #post_params, property, recognize?, #warn_about_invalid_property
Methods included from Model::Search
Constructor Details
This class inherits a constructor from Mogli::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Mogli::Model
Instance Method Details
#to_json(options = nil) ⇒ Object
simple implementation of to_json, ignoring options like :only, :except, :include, :methods because this is primarily intended for being submitted to facebook
8 9 10 |
# File 'lib/mogli/action.rb', line 8 def to_json( = nil) "{\"name\":\"#{name}\",\"link\":\"#{link}\"}" end |