Class: Phaxio::Resources::PortNumber
- Inherits:
-
Phaxio::Resource
- Object
- Phaxio::Resource
- Phaxio::Resources::PortNumber
- Defined in:
- lib/phaxio/resources/port_number.rb
Overview
Provides functionality for viewing port numbers.
Instance Attribute Summary collapse
-
#id ⇒ Integer
The ID associated with this number.
-
#port_number ⇒ String
The E.164 number.
-
#status ⇒ String
The status of this number.
Class Method Summary collapse
-
.get(id, params = {}) ⇒ Phaxio::Resource::PortNumber
(also: retrieve, find)
Get port number info.
Methods inherited from Phaxio::Resource
response_collection, response_record
Instance Attribute Details
#id ⇒ Integer
|
|
# File 'lib/phaxio/resources/port_number.rb', line 8
|
#port_number ⇒ String
|
|
# File 'lib/phaxio/resources/port_number.rb', line 11
|
#status ⇒ String
17 |
# File 'lib/phaxio/resources/port_number.rb', line 17 has_normal_attributes %w(id port_number status) |
Class Method Details
.get(id, params = {}) ⇒ Phaxio::Resource::PortNumber Also known as: retrieve, find
Get port number info.
27 28 29 30 |
# File 'lib/phaxio/resources/port_number.rb', line 27 def get id, params = {} response = Client.request :get, port_number_endpoint(id.to_i), params response_record response end |