Class: Plivo::Resources::PhloMember

Inherits:
Base::Resource show all
Defined in:
lib/plivo/resources/phlo_member.rb

Constant Summary

Constants included from Utils

Utils::TYPE_WHITELIST

Instance Attribute Summary

Attributes inherited from Base::Resource

#id

Instance Method Summary collapse

Methods included from Utils

GetSortedQueryParamString?, compute_signatureV3?, expected_type?, expected_value?, generate_url?, getMapFromQueryString?, is_one_among_string_url?, multi_valid_param?, raise_invalid_request, valid_account?, valid_date_format?, valid_mainaccount?, valid_multiple_destination_integers?, valid_multiple_destination_nos?, valid_param?, valid_range?, valid_signature?, valid_signatureV3?, valid_subaccount?, valid_url?

Constructor Details

#initialize(client, options) ⇒ PhloMember

Returns a new instance of PhloMember.



4
5
6
7
8
9
# File 'lib/plivo/resources/phlo_member.rb', line 4

def initialize(client, options)
  @_name = 'member'
  @_identifier_string = 'member_address'
  super
  configure_resource_uri
end

Instance Method Details

#abort_transferObject



54
55
56
# File 'lib/plivo/resources/phlo_member.rb', line 54

def abort_transfer
  perform_update({action: 'abort_transfer'})
end

#hangupObject



38
39
40
# File 'lib/plivo/resources/phlo_member.rb', line 38

def hangup
  perform_update({action: 'hangup'})
end

#holdObject



22
23
24
# File 'lib/plivo/resources/phlo_member.rb', line 22

def hold
  perform_update({action: 'hold'})
end

#muteObject

def remove

perform_delete

end



46
47
48
# File 'lib/plivo/resources/phlo_member.rb', line 46

def mute
  perform_update({action: 'mute'})
end

#resume_callObject



34
35
36
# File 'lib/plivo/resources/phlo_member.rb', line 34

def resume_call
  perform_update({action: 'resume_call'})
end

#to_sObject



11
12
13
14
15
16
17
18
19
20
# 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

#unholdObject



26
27
28
# File 'lib/plivo/resources/phlo_member.rb', line 26

def unhold
  perform_update({action: 'unhold'})
end

#unmuteObject



50
51
52
# File 'lib/plivo/resources/phlo_member.rb', line 50

def unmute
  perform_update({action: 'unmute'})
end

#voicemail_dropObject



30
31
32
# File 'lib/plivo/resources/phlo_member.rb', line 30

def voicemail_drop
  perform_update({action: 'voicemail_drop'})
end