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/fax.rb,
lib/phaxio/resources/public.rb,
lib/phaxio/resources/account.rb,
lib/phaxio/resources/callback.rb,
lib/phaxio/resources/phax_code.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/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.0.1"

Class Attribute Summary collapse

Class Attribute Details

.api_endpointObject


35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/phaxio.rb', line 35

%w(api_key api_secret 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


35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/phaxio.rb', line 35

%w(api_key api_secret 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


35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/phaxio.rb', line 35

%w(api_key api_secret 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

.callback_tokenObject


35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/phaxio.rb', line 35

%w(api_key api_secret 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