Class: BloomApi::Address
- Inherits:
-
Object
- Object
- BloomApi::Address
- Defined in:
- lib/bloom_api/address.rb
Overview
An address object containing the availabile data of business or practice addresses in Bloom API
Instance Method Summary collapse
-
#city ⇒ String
The address’s city.
-
#country ⇒ String
The address’s country code.
-
#fax ⇒ String
The fax number for the address.
-
#initialize(raw_address) ⇒ Address
constructor
Creats a new BloomApi::Address.
-
#line1 ⇒ String
Line 1 of the address.
-
#line2 ⇒ String
Line 2 of the address.
-
#phone ⇒ String
The contact phone number for the address.
-
#state ⇒ String
The 2-digit state code for the address.
-
#zip ⇒ String
The zip code for the address.
Constructor Details
#initialize(raw_address) ⇒ Address
Creats a new BloomApi::Address
11 12 13 |
# File 'lib/bloom_api/address.rb', line 11 def initialize raw_address @raw_address = raw_address end |
Instance Method Details
#city ⇒ String
Returns The address’s city.
16 17 18 |
# File 'lib/bloom_api/address.rb', line 16 def city @raw_address['city'] end |
#country ⇒ String
Returns The address’s country code.
21 22 23 |
# File 'lib/bloom_api/address.rb', line 21 def country @raw_address['country_code'] end |
#fax ⇒ String
Returns The fax number for the address.
26 27 28 |
# File 'lib/bloom_api/address.rb', line 26 def fax @raw_address['fax'] end |
#line1 ⇒ String
Returns Line 1 of the address.
31 32 33 |
# File 'lib/bloom_api/address.rb', line 31 def line1 @raw_address['address_line'] end |
#line2 ⇒ String
Returns Line 2 of the address.
36 37 38 |
# File 'lib/bloom_api/address.rb', line 36 def line2 @raw_address['address_details_line'] end |
#phone ⇒ String
Returns The contact phone number for the address.
41 42 43 |
# File 'lib/bloom_api/address.rb', line 41 def phone @raw_address['phone'] end |
#state ⇒ String
Returns The 2-digit state code for the address.
46 47 48 |
# File 'lib/bloom_api/address.rb', line 46 def state @raw_address['state'] end |
#zip ⇒ String
Returns The zip code for the address.
51 52 53 |
# File 'lib/bloom_api/address.rb', line 51 def zip @raw_address['zip'] end |