Class: CTM::AvailableNumber

Inherits:
Base
  • Object
show all
Defined in:
lib/ctm/available_number.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#account_id, #token

Instance Method Summary collapse

Methods inherited from Base

create, #release!, #save

Constructor Details

#initialize(data, token = nil) ⇒ AvailableNumber

Returns a new instance of AvailableNumber.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/ctm/available_number.rb', line 5

def initialize(data, token=nil)
  super(data, token)
  @friendly_name = data['friendly_name']
  @latitude = data['latitude']
  @longitude = data['longitude']
  @lata = data['lata']
  @region = data['region']
  @postal_code = data['postal_code']
  @iso_country = data['iso_country']
  @phone_number = data['phone_number']
end

Instance Attribute Details

#friendly_nameObject (readonly)

Returns the value of attribute friendly_name.



3
4
5
# File 'lib/ctm/available_number.rb', line 3

def friendly_name
  @friendly_name
end

#iso_countryObject (readonly)

Returns the value of attribute iso_country.



3
4
5
# File 'lib/ctm/available_number.rb', line 3

def iso_country
  @iso_country
end

#lataObject (readonly)

Returns the value of attribute lata.



3
4
5
# File 'lib/ctm/available_number.rb', line 3

def lata
  @lata
end

#latitudeObject (readonly)

Returns the value of attribute latitude.



3
4
5
# File 'lib/ctm/available_number.rb', line 3

def latitude
  @latitude
end

#longitudeObject (readonly)

Returns the value of attribute longitude.



3
4
5
# File 'lib/ctm/available_number.rb', line 3

def longitude
  @longitude
end

#phone_numberObject (readonly)

Returns the value of attribute phone_number.



3
4
5
# File 'lib/ctm/available_number.rb', line 3

def phone_number
  @phone_number
end

#postal_codeObject (readonly)

Returns the value of attribute postal_code.



3
4
5
# File 'lib/ctm/available_number.rb', line 3

def postal_code
  @postal_code
end

#rate_centerObject (readonly)

Returns the value of attribute rate_center.



3
4
5
# File 'lib/ctm/available_number.rb', line 3

def rate_center
  @rate_center
end

#regionObject (readonly)

Returns the value of attribute region.



3
4
5
# File 'lib/ctm/available_number.rb', line 3

def region
  @region
end