Class: Zipcode

Inherits:
Object
  • Object
show all
Defined in:
lib/zipcode.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



10
11
12
# File 'lib/zipcode.rb', line 10

def code
  @code
end

#plus_fourObject

Returns the value of attribute plus_four.



10
11
12
# File 'lib/zipcode.rb', line 10

def plus_four
  @plus_four
end