Class: Google4R::Checkout::UsStateArea
- Defined in:
- lib/google4r/checkout/shared.rb
Overview
Instances of UsStateArea represent states in the US.
Instance Attribute Summary collapse
-
#state ⇒ Object
The two-letter code of the US state.
Instance Method Summary collapse
-
#initialize(state = nil) ⇒ UsStateArea
constructor
You can optionally initialize the Area with its value.
Constructor Details
#initialize(state = nil) ⇒ UsStateArea
You can optionally initialize the Area with its value.
366 367 368 |
# File 'lib/google4r/checkout/shared.rb', line 366 def initialize(state=nil) self.state = state unless state.nil? end |
Instance Attribute Details
#state ⇒ Object
The two-letter code of the US state.
363 364 365 |
# File 'lib/google4r/checkout/shared.rb', line 363 def state @state end |