Module: Convoy::ApiOperations::Create

Included in:
Convoy::ApiKey, Endpoint, Event, PortalLink, Project, Source, Subscription
Defined in:
lib/convoy/api_operations/create.rb

Instance Method Summary collapse

Instance Method Details

#create(**kwargs) ⇒ Object



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

def create(**kwargs)
  resource = self.new(**kwargs)
  resource.save

  resource
end