Method: Facebooker::Model::ClassMethods#hash_settable_accessor
- Defined in:
- lib/facebooker/model.rb
#hash_settable_accessor(symbol, klass) ⇒ Object
- Declares an attribute named ::symbol
- which can be set with either an instance of ::klass
or a Hash which will be used to populate a new instance of ::klass::.
54 55 56 57 |
# File 'lib/facebooker/model.rb', line 54 def hash_settable_accessor(symbol, klass) attr_reader symbol hash_settable_writer(symbol, klass) end |