Class: Vonage::Applications
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Applications
- Extended by:
- T::Sig
- Defined in:
- lib/vonage/applications.rb
Defined Under Namespace
Classes: ListResponse
Instance Method Summary collapse
- #create(params) ⇒ Object
- #delete(id) ⇒ Object
- #get(id) ⇒ Object
- #list(params = nil, auto_advance = true) ⇒ Object
- #update(id, params) ⇒ Object
Instance Method Details
#create(params) ⇒ Object
58 59 60 |
# File 'lib/vonage/applications.rb', line 58 def create(params) request('/v2/applications', params: params, type: Post) end |
#delete(id) ⇒ Object
160 161 162 |
# File 'lib/vonage/applications.rb', line 160 def delete(id) request('/v2/applications/' + id, type: Delete) end |
#get(id) ⇒ Object
107 108 109 |
# File 'lib/vonage/applications.rb', line 107 def get(id) request('/v2/applications/' + id) end |
#list(params = nil, auto_advance = true) ⇒ Object
87 88 89 90 91 92 93 |
# File 'lib/vonage/applications.rb', line 87 def list(params = nil, auto_advance = true) if params && !params.key?(:auto_advance) params.merge!(auto_advance: true) end request('/v2/applications', params: params, response_class: ListResponse) end |
#update(id, params) ⇒ Object
142 143 144 |
# File 'lib/vonage/applications.rb', line 142 def update(id, params) request('/v2/applications/' + id, params: params, type: Put) end |