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



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

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

#get(id) ⇒ Object



103
104
105
# File 'lib/vonage/applications.rb', line 103

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

#list(params = nil, auto_advance = true) ⇒ Object



83
84
85
86
87
88
89
# File 'lib/vonage/applications.rb', line 83

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



134
135
136
# File 'lib/vonage/applications.rb', line 134

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