Class: GlobalPhone::Territory
- Defined in:
- lib/global_phone/territory.rb
Instance Attribute Summary collapse
-
#region ⇒ Object
readonly
Returns the value of attribute region.
Instance Method Summary collapse
-
#initialize(data, region) ⇒ Territory
constructor
A new instance of Territory.
- #inspect ⇒ Object
- #parse_national_string(string) ⇒ Object
Methods inherited from Record
Constructor Details
#initialize(data, region) ⇒ Territory
Returns a new instance of Territory.
19 20 21 22 |
# File 'lib/global_phone/territory.rb', line 19 def initialize(data, region) super(data) @region = region end |
Instance Attribute Details
#region ⇒ Object (readonly)
Returns the value of attribute region.
11 12 13 |
# File 'lib/global_phone/territory.rb', line 11 def region @region end |
Instance Method Details
#inspect ⇒ Object
29 30 31 |
# File 'lib/global_phone/territory.rb', line 29 def inspect "#<#{self.class.name} country_code=#{country_code} name=#{name}>" end |