Class: Plivo::Resources::Member
Constant Summary
Constants included
from Utils
Utils::TYPE_WHITELIST
Instance Attribute Summary
#id
Instance Method Summary
collapse
Methods included from Utils
expected_type?, expected_value?, raise_invalid_request, valid_account?, valid_mainaccount?, valid_param?, valid_signature?, valid_subaccount?
Constructor Details
#initialize(client, options) ⇒ Member
Returns a new instance of Member.
4
5
6
7
8
9
|
# File 'lib/plivo/resources/member.rb', line 4
def initialize(client, options)
@_name = 'member'
@_identifier_string = 'member_address'
super
configure_resource_uri
end
|
Instance Method Details
#abort_transfer ⇒ Object
54
55
56
|
# File 'lib/plivo/resources/member.rb', line 54
def abort_transfer
perform_update({action: 'abort_transfer'})
end
|
#hangup ⇒ Object
38
39
40
|
# File 'lib/plivo/resources/member.rb', line 38
def hangup
perform_update({action: 'hangup'})
end
|
#hold ⇒ Object
22
23
24
|
# File 'lib/plivo/resources/member.rb', line 22
def hold
perform_update({action: 'hold'})
end
|
#mute ⇒ Object
def remove
perform_delete
end
46
47
48
|
# File 'lib/plivo/resources/member.rb', line 46
def mute
perform_update({action: 'mute'})
end
|
#resume_call ⇒ Object
34
35
36
|
# File 'lib/plivo/resources/member.rb', line 34
def resume_call
perform_update({action: 'resume_call'})
end
|
#to_s ⇒ Object
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/plivo/resources/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 ⇒ Object
26
27
28
|
# File 'lib/plivo/resources/member.rb', line 26
def unhold
perform_update({action: 'unhold'})
end
|
#unmute ⇒ Object
50
51
52
|
# File 'lib/plivo/resources/member.rb', line 50
def unmute
perform_update({action: 'unmute'})
end
|
#voicemail_drop ⇒ Object
30
31
32
|
# File 'lib/plivo/resources/member.rb', line 30
def voicemail_drop
perform_update({action: 'voicemail_drop'})
end
|