class Plivo::Resources::NodeInterface

Public Class Methods

new(client, resource_list_json=nil) click to toggle source
Calls superclass method Plivo::Base::ResourceInterface::new
# File lib/plivo/resources/nodes.rb, line 4
def initialize(client, resource_list_json=nil)
  super
end

Public Instance Methods

getNode(node_id, node_type) click to toggle source
# File lib/plivo/resources/nodes.rb, line 8
def getNode(node_id, node_type)
  @_resource_uri = ['', 'v1', 'phlo', @_phlo_id, node_type, ''].join('/')
  @_resource_type = configure_node_type(node_type)
  perform_get(node_id)
end

Private Instance Methods

configure_node_type(node_type) click to toggle source
# File lib/plivo/resources/nodes.rb, line 15
def configure_node_type(node_type)
  case node_type
  when 'multi_party_call'
    PhloMultiPartyCall
  # when 'conference_bridge'
  #   ConferenceBridge
  end
end