Module: Phaxio

Includes:
Resources
Defined in:
lib/phaxio/client.rb,
lib/phaxio.rb,
lib/phaxio/error.rb,
lib/phaxio/config.rb,
lib/phaxio/version.rb,
lib/phaxio/resource.rb,
lib/phaxio/resources.rb,
lib/phaxio/resources/ata.rb,
lib/phaxio/resources/fax.rb,
lib/phaxio/resources/public.rb,
lib/phaxio/resources/account.rb,
lib/phaxio/resources/webhook.rb,
lib/phaxio/resources/callback.rb,
lib/phaxio/resources/phax_code.rb,
lib/phaxio/resources/port_order.rb,
lib/phaxio/resources/port_number.rb,
lib/phaxio/resources/phone_number.rb,
lib/phaxio/resources/fax_recipient.rb,
lib/phaxio/helpers/mime_type_helper.rb,
lib/phaxio/resources/public/country.rb,
lib/phaxio/resources/port_number_note.rb,
lib/phaxio/resources/public/area_code.rb

Overview

Note:

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.

Defined Under Namespace

Modules: Error, MimeTypeHelper, Resources Classes: Client, Config, Resource

Constant Summary collapse

VERSION =
"2.1.2"

Class Attribute Summary collapse

Class Attribute Details

.api_endpointObject



42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/phaxio.rb', line 42

%w(api_key api_secret webhook_token callback_token api_endpoint).each do |config_attribute|
  # Define getters
  define_method(config_attribute) do
    Config.public_send config_attribute
  end

  # Define setters
  setter = "#{config_attribute}="
  define_method(setter) do |value|
    Config.public_send setter, value
  end
end

.api_keyObject



42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/phaxio.rb', line 42

%w(api_key api_secret webhook_token callback_token api_endpoint).each do |config_attribute|
  # Define getters
  define_method(config_attribute) do
    Config.public_send config_attribute
  end

  # Define setters
  setter = "#{config_attribute}="
  define_method(setter) do |value|
    Config.public_send setter, value
  end
end

.api_secretObject



42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/phaxio.rb', line 42

%w(api_key api_secret webhook_token callback_token api_endpoint).each do |config_attribute|
  # Define getters
  define_method(config_attribute) do
    Config.public_send config_attribute
  end

  # Define setters
  setter = "#{config_attribute}="
  define_method(setter) do |value|
    Config.public_send setter, value
  end
end

.webhook_tokenObject Also known as: callback_token



42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/phaxio.rb', line 42

%w(api_key api_secret webhook_token callback_token api_endpoint).each do |config_attribute|
  # Define getters
  define_method(config_attribute) do
    Config.public_send config_attribute
  end

  # Define setters
  setter = "#{config_attribute}="
  define_method(setter) do |value|
    Config.public_send setter, value
  end
end