Module: Postmaster::APIOperations::Create::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#create(params = {}) ⇒ Object



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

def create(params={})
  response = Postmaster.request(:post, self.url, params)
  self.construct_from(response)
end