class Plivo::Resources::PhloMember
Public Class Methods
new(client, options)
click to toggle source
Calls superclass method
Plivo::Base::Resource::new
# File lib/plivo/resources/phlo_member.rb, line 4 def initialize(client, options) @_name = 'member' @_identifier_string = 'member_address' super configure_resource_uri end
Public Instance Methods
abort_transfer()
click to toggle source
# File lib/plivo/resources/phlo_member.rb, line 54 def abort_transfer perform_update({action: 'abort_transfer'}) end
hangup()
click to toggle source
# File lib/plivo/resources/phlo_member.rb, line 38 def hangup perform_update({action: 'hangup'}) end
hold()
click to toggle source
# File lib/plivo/resources/phlo_member.rb, line 22 def hold perform_update({action: 'hold'}) end
mute()
click to toggle source
def remove
perform_delete
end
# File lib/plivo/resources/phlo_member.rb, line 46 def mute perform_update({action: 'mute'}) end
resume_call()
click to toggle source
# File lib/plivo/resources/phlo_member.rb, line 34 def resume_call perform_update({action: 'resume_call'}) end
to_s()
click to toggle source
# File lib/plivo/resources/phlo_member.rb, line 11 def to_s { api_id: @api_id, node_id: @node_id, phlo_id: @phlo_id, node_type: @node_type, member_address: @member_address, created_on: @created_on }.to_s end
unhold()
click to toggle source
# File lib/plivo/resources/phlo_member.rb, line 26 def unhold perform_update({action: 'unhold'}) end
unmute()
click to toggle source
# File lib/plivo/resources/phlo_member.rb, line 50 def unmute perform_update({action: 'unmute'}) end
voicemail_drop()
click to toggle source
# File lib/plivo/resources/phlo_member.rb, line 30 def voicemail_drop perform_update({action: 'voicemail_drop'}) end
Private Instance Methods
configure_resource_uri()
click to toggle source
# File lib/plivo/resources/phlo_member.rb, line 59 def configure_resource_uri @_resource_uri = ['', 'v1', 'phlo', @phlo_id, @node_type, @node_id, 'members', @id, ''].join('/') end