class GuestyAPI::GuestInbox
Public Instance Methods
list(params: {})
click to toggle source
# File lib/guesty_api/guest_inbox.rb, line 5 def list(params: {}) response = @client.get url: '/inbox/conversations', data: params check_response! response collection_entity response end
post(id:, params:)
click to toggle source
# File lib/guesty_api/guest_inbox.rb, line 21 def post(id:, params:) response = @client.post url: '/inbox/conversations', data: { conversationId: id, }.merge(params) check_response! response single_entity response end
retrieve(id:, fields: nil)
click to toggle source
# File lib/guesty_api/guest_inbox.rb, line 13 def retrieve(id:, fields: nil) response = @client.get url: "/inbox/conversations/#{id}", data: { fields: fields } check_response! response single_entity response end
Private Instance Methods
entity_class()
click to toggle source
# File lib/guesty_api/guest_inbox.rb, line 33 def entity_class Entities::GuestConversation end