Class: Snap::Api::Outbound

Inherits:
Object
  • Object
show all
Extended by:
Client
Includes:
HTTParty
Defined in:
lib/snap/api/outbound.rb

Overview

Interact with the snap outbound endpoint.

Class Method Summary collapse

Methods included from Client

client, delete, get, post, put, snoop_for_errors, wrap_response

Class Method Details

.acknowledge(id:) ⇒ Object



12
13
14
# File 'lib/snap/api/outbound.rb', line 12

def self.acknowledge(id:)
  client.put("/snapoutbound/#{id}")
end

.index(top: 1000) ⇒ Object



8
9
10
# File 'lib/snap/api/outbound.rb', line 8

def self.index(top: 1000)
  client.get('/snapoutbound', query: { '$top': top })
end

.modelObject



16
17
18
# File 'lib/snap/api/outbound.rb', line 16

def self.model
  Snap::OutboundList
end