Class: Google4R::Checkout::UsCountryArea

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

Overview

Instances of UsCountryArea identify a region within the US.

Constant Summary collapse

CONTINENTAL_48 =
"CONTINENTAL_48".freeze
FULL_50_STATES =
"FULL_50_STATES".freeze
ALL =
"ALL".freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(area = nil) ⇒ UsCountryArea

You can optionally initialize the Area with its value.



732
733
734
# File 'lib/google4r/checkout/shared.rb', line 732

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

Instance Attribute Details

#areaObject

The area that is specified with this UsCountryArea (required). Can be one of UsCountryArea::CONTINENTAL_48, UsCountryArea::FULL_50_STATES and UsCountryArea::ALL. See the Google Checkout API for information on these values.



729
730
731
# File 'lib/google4r/checkout/shared.rb', line 729

def area
  @area
end