Module: DomoscioRails::HTTPCalls::Create::ClassMethods

Defined in:
lib/domoscio_rails/http_calls.rb

Instance Method Summary collapse

Instance Method Details

#create(*id, params) ⇒ Object



6
7
8
9
# File 'lib/domoscio_rails/http_calls.rb', line 6

def create(*id, params)
  id = id.empty? ? nil : id[0]
  DomoscioRails.request(:post, url(id, nil, params), params)
end