Module: Delicious::ApiModel::ClassMethods

Defined in:
lib/delicious/api_model.rb

Instance Method Summary collapse

Instance Method Details

#build_persisted(client, attrs) ⇒ Object



17
18
19
20
21
22
# File 'lib/delicious/api_model.rb', line 17

def build_persisted(client, attrs)
  obj = new attrs
  obj.persisted = true
  obj.delicious_client = client
  obj
end