Module: Zena::Remote::Interface::Create::ClassMethods
- Included in:
- Zena::Remote::Interface::ClassMethods
- Defined in:
- lib/zena/remote/interface.rb
Overview
Used by connection.find(…)
Instance Method Summary collapse
Instance Method Details
#create(attributes) ⇒ Object
35 36 37 38 39 |
# File 'lib/zena/remote/interface.rb', line 35 def create(attributes) node = new(attributes) node.save node end |
#new(attributes) ⇒ Object
41 42 43 |
# File 'lib/zena/remote/interface.rb', line 41 def new(attributes) Zena::Remote::Node.new(@connection, attributes.stringify_keys.merge('class' => @name)) end |