class Plivo::Resources::Phlo

Public Class Methods

new(client, options = nil) click to toggle source
Calls superclass method Plivo::Base::Resource::new
# File lib/plivo/resources/phlos.rb, line 7
def initialize(client, options = nil)
  @_name = 'phlo'
  @_identifier_string = 'phlo_id'
  super
end

Public Instance Methods

multi_party_call(node_id) click to toggle source
# File lib/plivo/resources/phlos.rb, line 23
def multi_party_call(node_id)
  nodeInterface = NodeInterface.new(@_client, {_phlo_id: @id})
  nodeInterface.getNode(node_id, 'multi_party_call')
end
run(params=nil) click to toggle source

def conference_bridge(node_id)

nodeInterface = NodeInterface.new(@_client, {_phlo_id: @id})
nodeInterface.getNode(node_id, 'conference_bridge')

end

# File lib/plivo/resources/phlos.rb, line 33
def run(params=nil)
  @_resource_uri = ['', 'v1', 'account', @_client.auth_id, @_name, @id, ''].join('/')
  perform_run(params)
end
to_s() click to toggle source
# File lib/plivo/resources/phlos.rb, line 13
def to_s
  {
      api_id: @api_id,
      phlo_id: @phlo_id,
      name: @name,
      created_on: @created_on,
      phlo_run_id: @phlo_run_id
  }.to_s
end