Class: Vonage::Conversations

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

Defined Under Namespace

Classes: Events, Legs, Members, Users

Instance Method Summary collapse

Instance Method Details

#create(params) ⇒ Object


39
40
41
# File 'lib/vonage/conversations.rb', line 39

def create(params)
  request('/beta/conversations', params: params, type: Post)
end

#delete(id) ⇒ Object


138
139
140
# File 'lib/vonage/conversations.rb', line 138

def delete(id)
  request('/beta/conversations/' + id, type: Delete)
end

#eventsObject


180
181
182
183
184
# File 'lib/vonage/conversations.rb', line 180

def events
  @events = T.let(@events, T.nilable(Vonage::Conversations::Events))
  @config = T.let(@config, T.nilable(Vonage::Config))
  @events ||= Events.new(@config)
end

#get(id) ⇒ Object


86
87
88
# File 'lib/vonage/conversations.rb', line 86

def get(id)
  request('/beta/conversations/' + id)
end

#legsObject


189
190
191
192
# File 'lib/vonage/conversations.rb', line 189

def legs
  @legs = T.let(@legs, T.nilable(Vonage::Conversations::Legs))
  @legs ||= Legs.new(@config)
end

#list(params = nil) ⇒ Object


70
71
72
# File 'lib/vonage/conversations.rb', line 70

def list(params = nil)
  request('/beta/conversations', params: params)
end

#membersObject


197
198
199
200
# File 'lib/vonage/conversations.rb', line 197

def members
  @members = T.let(@members, T.nilable(Vonage::Conversations::Members))
  @members ||= Members.new(@config)
end

#record(id, params) ⇒ Object


173
174
175
# File 'lib/vonage/conversations.rb', line 173

def record(id, params)
  request('/v1/conversations/' + id + '/record', params: params, type: Put)
end

#update(id, params) ⇒ Object


122
123
124
# File 'lib/vonage/conversations.rb', line 122

def update(id, params)
  request('/beta/conversations/' + id, params: params, type: Put)
end

#usersObject


205
206
207
208
# File 'lib/vonage/conversations.rb', line 205

def users
  @users = T.let(@users, T.nilable(Vonage::Conversations::Users))
  @users ||= Users.new(@config)
end