Class: CTM::AvailableNumber
Instance Attribute Summary collapse
-
#friendly_name ⇒ Object
readonly
Returns the value of attribute friendly_name.
-
#iso_country ⇒ Object
readonly
Returns the value of attribute iso_country.
-
#lata ⇒ Object
readonly
Returns the value of attribute lata.
-
#latitude ⇒ Object
readonly
Returns the value of attribute latitude.
-
#longitude ⇒ Object
readonly
Returns the value of attribute longitude.
-
#phone_number ⇒ Object
readonly
Returns the value of attribute phone_number.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
-
#rate_center ⇒ Object
readonly
Returns the value of attribute rate_center.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(data, token = nil) ⇒ AvailableNumber
constructor
A new instance of AvailableNumber.
Methods inherited from Base
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_name ⇒ Object (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_country ⇒ Object (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 |
#lata ⇒ Object (readonly)
Returns the value of attribute lata.
3 4 5 |
# File 'lib/ctm/available_number.rb', line 3 def lata @lata end |
#latitude ⇒ Object (readonly)
Returns the value of attribute latitude.
3 4 5 |
# File 'lib/ctm/available_number.rb', line 3 def latitude @latitude end |
#longitude ⇒ Object (readonly)
Returns the value of attribute longitude.
3 4 5 |
# File 'lib/ctm/available_number.rb', line 3 def longitude @longitude end |
#phone_number ⇒ Object (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_code ⇒ Object (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_center ⇒ Object (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 |
#region ⇒ Object (readonly)
Returns the value of attribute region.
3 4 5 |
# File 'lib/ctm/available_number.rb', line 3 def region @region end |