Module: Layer::Operations::Create::ClassMethods
- Included in:
- Announcement, Content, Conversation, Webhook
- Defined in:
- lib/layer/operations/create.rb
Instance Method Summary collapse
-
#create(attributes = {}, client = self.client) ⇒ Layer::Resource
Creates the resource with the given attributes.
Instance Method Details
#create(attributes = {}, client = self.client) ⇒ Layer::Resource
Creates the resource with the given attributes
12 13 14 15 |
# File 'lib/layer/operations/create.rb', line 12 def create(attributes = {}, client = self.client) response = client.post(url, attributes) from_response(response, client) end |