Class: Google4R::Checkout::UsStateArea

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

Overview

Instances of UsStateArea represent states in the US.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state = nil) ⇒ UsStateArea

You can optionally initialize the Area with its value.



708
709
710
# File 'lib/google4r/checkout/shared.rb', line 708

def initialize(state=nil)
  @state = state unless state.nil?
end

Instance Attribute Details

#stateObject

The two-letter code of the US state.



705
706
707
# File 'lib/google4r/checkout/shared.rb', line 705

def state
  @state
end