Method: OldApiResource::Base.create

Defined in:
lib/old_api_resource/base.rb

.create(attributes = {}) ⇒ Object



188
189
190
# File 'lib/old_api_resource/base.rb', line 188

def create(attributes = {})
  self.new(attributes).tap{ |resource| resource.save }
end