Module: DomoscioAdmin::HTTPCalls::Create::ClassMethods

Defined in:
lib/domoscio_admin/http_calls.rb

Instance Method Summary collapse

Instance Method Details

#create(*id, params) ⇒ Object



5
6
7
8
# File 'lib/domoscio_admin/http_calls.rb', line 5

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