Class: Phaxio::Resources::Public::Country
- Inherits:
-
Phaxio::Resource
- Object
- Phaxio::Resource
- Phaxio::Resources::Public::Country
- Defined in:
- lib/phaxio/resources/public/country.rb
Instance Attribute Summary collapse
-
#alpha2 ⇒ String
The alpha2 representation of the country.
-
#country_code ⇒ Integer
The E.164 country code for the country.
-
#name ⇒ String
The name of the country.
-
#price_per_page ⇒ Integer
The price per page for the country, in cents.
-
#receive_support ⇒ String
The level of receive support provided for this country.
-
#send_support ⇒ String
The level of send support provided for this country.
Class Method Summary collapse
-
.list(params = {}) ⇒ Phaxio::Resource::Collection<Phaxio::Resources::Country>
Get a list of supported countries for sending faxes.
Methods inherited from Phaxio::Resource
response_collection, response_record
Instance Attribute Details
#alpha2 ⇒ String
Returns the alpha2 representation of the country.
|
# File 'lib/phaxio/resources/public/country.rb', line 11
|
#country_code ⇒ Integer
Returns the E.164 country code for the country.
|
# File 'lib/phaxio/resources/public/country.rb', line 14
|
#name ⇒ String
Returns the name of the country.
|
# File 'lib/phaxio/resources/public/country.rb', line 8
|
#price_per_page ⇒ Integer
Returns the price per page for the country, in cents.
|
# File 'lib/phaxio/resources/public/country.rb', line 17
|
#receive_support ⇒ String
Returns the level of receive support provided for this country.
26 27 28 |
# File 'lib/phaxio/resources/public/country.rb', line 26 has_normal_attributes %w[ name alpha2 country_code price_per_page send_support receive_support ] |
#send_support ⇒ String
Returns the level of send support provided for this country.
|
# File 'lib/phaxio/resources/public/country.rb', line 20
|
Class Method Details
.list(params = {}) ⇒ Phaxio::Resource::Collection<Phaxio::Resources::Country>
This action accepts paging parameters:
-
per_page [Integer] - The maximum number of results to return per call (i.e. “page”). Max 1000.
-
page [Integer] - The page number to return for the request. 1-based.
Get a list of supported countries for sending faxes.
40 41 42 43 |
# File 'lib/phaxio/resources/public/country.rb', line 40 def list params = {} response = Client.request :get, supported_countries_endpoint, params Country.response_collection response end |