Class: Plivo::Resources::NodeInterface

Inherits:
Base::ResourceInterface show all
Defined in:
lib/plivo/resources/nodes.rb

Constant Summary

Constants included from Utils

Utils::TYPE_WHITELIST

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, resource_list_json = nil) ⇒ NodeInterface

Returns a new instance of NodeInterface.



4
5
6
# File 'lib/plivo/resources/nodes.rb', line 4

def initialize(client, resource_list_json=nil)
  super
end

Instance Method Details

#getNode(node_id, node_type) ⇒ Object



8
9
10
11
12
# 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