Class: Phaxio::Resources::PhoneNumber::Reference

Inherits:
Object
  • Object
show all
Defined in:
lib/phaxio/resources/phone_number.rb

Overview

A reference to a phone number, returned by some actions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#phone_numberString

Returns The phone number in E.164 format.

Returns:

  • (String)

    The phone number in E.164 format.


40
41
42
# File 'lib/phaxio/resources/phone_number.rb', line 40

def phone_number
  @phone_number
end

Instance Method Details

#getPhaxio::Resources::PhoneNumber Also known as: retrieve, find

Gets the referenced phone number.

Returns:


49
50
51
# File 'lib/phaxio/resources/phone_number.rb', line 49

def get
  PhoneNumber.get self
end

#to_sObject


42
43
44
# File 'lib/phaxio/resources/phone_number.rb', line 42

def to_s
  phone_number
end