Class: Plivo::Resources::NodeInterface
- Inherits:
-
Base::ResourceInterface
- Object
- Base::ResourceInterface
- Plivo::Resources::NodeInterface
- Defined in:
- lib/plivo/resources/nodes.rb
Constant Summary
Constants included from Utils
Instance Method Summary collapse
- #getNode(node_id, node_type) ⇒ Object
-
#initialize(client, resource_list_json = nil) ⇒ NodeInterface
constructor
A new instance of NodeInterface.
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, 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 |