Method: RTX::API::Collection#create!

Defined in:
lib/rtx/api/collection.rb

#create!(attrs = {}) ⇒ Object

Creates a new resource via POST and returns it on success

[View source]

14
15
16
17
# File 'lib/rtx/api/collection.rb', line 14

def create!(attrs = {})
  client.authenticate if !client.authenticated?
  post(symbolize_hash(attrs))
end