Class: Apps::Adapters::Gmail::Markup::PostalAddress
- Defined in:
- lib/apps/adapters/gmail/markup/postal_address.rb
Instance Attribute Summary collapse
-
#country ⇒ Object
Returns the value of attribute country.
-
#locality ⇒ Object
Returns the value of attribute locality.
-
#name ⇒ Object
Returns the value of attribute name.
-
#po_box ⇒ Object
Returns the value of attribute po_box.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#region ⇒ Object
Returns the value of attribute region.
-
#street ⇒ Object
Returns the value of attribute street.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Apps::Adapters::Gmail::Markup::Base
Instance Attribute Details
#country ⇒ Object
Returns the value of attribute country.
9 10 11 |
# File 'lib/apps/adapters/gmail/markup/postal_address.rb', line 9 def country @country end |
#locality ⇒ Object
Returns the value of attribute locality.
9 10 11 |
# File 'lib/apps/adapters/gmail/markup/postal_address.rb', line 9 def locality @locality end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/apps/adapters/gmail/markup/postal_address.rb', line 9 def name @name end |
#po_box ⇒ Object
Returns the value of attribute po_box.
9 10 11 |
# File 'lib/apps/adapters/gmail/markup/postal_address.rb', line 9 def po_box @po_box end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
9 10 11 |
# File 'lib/apps/adapters/gmail/markup/postal_address.rb', line 9 def postal_code @postal_code end |
#region ⇒ Object
Returns the value of attribute region.
9 10 11 |
# File 'lib/apps/adapters/gmail/markup/postal_address.rb', line 9 def region @region end |
#street ⇒ Object
Returns the value of attribute street.
9 10 11 |
# File 'lib/apps/adapters/gmail/markup/postal_address.rb', line 9 def street @street end |
Instance Method Details
#as_json ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/apps/adapters/gmail/markup/postal_address.rb', line 11 def as_json prune super.merge( "name" => name, "streetAddress" => street, # street address "addressLocality" => locality, # city "addressRegion" => region, # state (abbr) "postOfficeBoxNumber" => po_box, "postalCode" => postal_code, # zip code "addressCountry" => country ) end |