Class: Structurely::Clients::ConversationWebhooks

Inherits:
ApiStruct::Client
  • Object
show all
Defined in:
lib/structurely/clients/conversation_webhooks.rb

Instance Method Summary collapse

Instance Method Details

#create(post_data) ⇒ Object

Calls POST /conversationWebhooks



29
30
31
# File 'lib/structurely/clients/conversation_webhooks.rb', line 29

def create(post_data)
  post(json: post_data, path: "conversationWebhooks")
end

#destroy(id) ⇒ Object

Calls DELETE /conversationWebhooks/:id



47
48
49
# File 'lib/structurely/clients/conversation_webhooks.rb', line 47

def destroy(id)
  delete(id, path: "conversationWebhooks")
end

#indexObject

Calls GET /conversationWebooks



11
12
13
# File 'lib/structurely/clients/conversation_webhooks.rb', line 11

def index
  get(path: "conversationWebhooks")
end

#show(id) ⇒ Object

Calls GET /conversationWebhooks/:id



20
21
22
# File 'lib/structurely/clients/conversation_webhooks.rb', line 20

def show(id)
  get(id, path: "conversationWebhooks")
end

#update(id, post_data) ⇒ Object

Calls PATCH /conversationWebhooks/:id



38
39
40
# File 'lib/structurely/clients/conversation_webhooks.rb', line 38

def update(id, post_data)
  patch(id, json: post_data, path: "conversationWebhooks")
end