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.



355
356
357
# File 'lib/google4r/checkout/shared.rb', line 355

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

Instance Attribute Details

#patternObject

The pattern for this ZIP area.



352
353
354
# File 'lib/google4r/checkout/shared.rb', line 352

def pattern
  @pattern
end