Class: Vonage::Applications

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

Defined Under Namespace

Classes: ListResponse

Instance Method Summary collapse

Instance Method Details

#create(params) ⇒ Object


54
55
56
# File 'lib/vonage/applications.rb', line 54

def create(params)
  request('/v2/applications', params: params, type: Post)
end

#delete(id) ⇒ Object


144
145
146
# File 'lib/vonage/applications.rb', line 144

def delete(id)
  request('/v2/applications/' + id, type: Delete)
end

#get(id) ⇒ Object


95
96
97
# File 'lib/vonage/applications.rb', line 95

def get(id)
  request('/v2/applications/' + id)
end

#list(params = nil) ⇒ Object


79
80
81
# File 'lib/vonage/applications.rb', line 79

def list(params = nil)
  request('/v2/applications', params: params, response_class: ListResponse)
end

#update(id, params) ⇒ Object


126
127
128
# File 'lib/vonage/applications.rb', line 126

def update(id, params)
  request('/v2/applications/' + id, params: params, type: Put)
end