Class: Vonage::Users

Inherits:
Namespace
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/vonage/users.rb

Defined Under Namespace

Classes: ListResponse

Instance Method Summary collapse

Instance Method Details

#create(**params) ⇒ Vonage::Response

Create a new User associated with the Vonage Application.



90
91
92
# File 'lib/vonage/users.rb', line 90

def create(**params)
  request('/v1/users', params: params, type: Post)
end

#delete(id:) ⇒ Vonage::Response

Delete a specified User associated with the Vonage Application.



152
153
154
# File 'lib/vonage/users.rb', line 152

def delete(id:)
  request("/v1/users/#{id}", type: Delete)
end

#find(id:) ⇒ Vonage::Response

Get a specified User associated with the Vonage Application.



44
45
46
# File 'lib/vonage/users.rb', line 44

def find(id:)
  request("/v1/users/#{id}")
end

#list(**params) ⇒ ListResponse

Get a list of Users associated with the Vonage Application.



31
32
33
# File 'lib/vonage/users.rb', line 31

def list(**params)
  request('/v1/users', params: params, response_class: ListResponse)
end

#update(id:, **params) ⇒ Vonage::Response

Update an existing User associated with the Vonage Application.



139
140
141
# File 'lib/vonage/users.rb', line 139

def update(id:, **params)
  request("/v1/users/#{id}", params: params, type: Patch)
end