Class: Google4R::Checkout::UsZipArea

Inherits:
Area
  • Object
show all
Defined in:
lib/google4r/checkout/shared.rb

Overview

Instances of UsZipArea represent areas specified by US ZIPs and ZIP patterns.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pattern = nil) ⇒ UsZipArea

You can optionally initialize the Area with its value.



663
664
665
# File 'lib/google4r/checkout/shared.rb', line 663

def initialize(pattern=nil)
  self.pattern = pattern unless pattern.nil?
end

Instance Attribute Details

#patternObject

The pattern for this ZIP area.



660
661
662
# File 'lib/google4r/checkout/shared.rb', line 660

def pattern
  @pattern
end