Module: Octobat::APIOperations::Create::ClassMethods

Defined in:
lib/octobat/api_operations/create.rb

Instance Method Summary collapse

Instance Method Details

#create(params = {}, opts = {}) ⇒ Object



5
6
7
8
9
# File 'lib/octobat/api_operations/create.rb', line 5

def create(params={}, opts={})
  api_key, headers = Util.parse_opts(opts)
  response, api_key = Octobat.request(:post, self.url, api_key, params, headers)
  Util.convert_to_octobat_object(response, api_key)
end