Class: Zipcode
- Inherits:
-
Object
- Object
- Zipcode
- Defined in:
- lib/zipcode.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#plus_four ⇒ Object
Returns the value of attribute plus_four.
Instance Method Summary collapse
-
#initialize(zipcode) ⇒ Zipcode
constructor
A new instance of Zipcode.
Constructor Details
#initialize(zipcode) ⇒ Zipcode
Returns a new instance of Zipcode.
12 13 14 |
# File 'lib/zipcode.rb', line 12 def initialize(zipcode) format_zipcode(zipcode) end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
10 11 12 |
# File 'lib/zipcode.rb', line 10 def code @code end |
#plus_four ⇒ Object
Returns the value of attribute plus_four.
10 11 12 |
# File 'lib/zipcode.rb', line 10 def plus_four @plus_four end |