Class: Hcp::Address
Overview
Where a customer is billed, or where the work happens.
Class Method Summary collapse
-
.key ⇒ Object
What Housecall Pro calls a page of a customer's addresses.
Instance Method Summary collapse
-
#city ⇒ String?
The city, as Housecall Pro answers it.
-
#country ⇒ String?
The country, as Housecall Pro answers it.
- #latitude ⇒ Float, ...
- #longitude ⇒ Float, ...
-
#state ⇒ String?
The state, as Housecall Pro answers it.
-
#street ⇒ String?
The street, as Housecall Pro answers it.
-
#street_line_2 ⇒ String?
The street_line_2, as Housecall Pro answers it.
-
#type ⇒ Symbol?
:billing or :service.
-
#zip ⇒ String?
The zip, as Housecall Pro answers it.
Methods inherited from Resource
amount, attribute, #id, #initialize, timestamp
Constructor Details
This class inherits a constructor from Hcp::Resource
Class Method Details
.key ⇒ Object
What Housecall Pro calls a page of a customer's addresses.
5 |
# File 'lib/hcp/resources/address.rb', line 5 def self.key = 'addresses' |
Instance Method Details
#city ⇒ String?
Returns the city, as Housecall Pro answers it.
9 |
# File 'lib/hcp/resources/address.rb', line 9 attribute :city |
#country ⇒ String?
Returns the country, as Housecall Pro answers it.
12 |
# File 'lib/hcp/resources/address.rb', line 12 attribute :country |
#latitude ⇒ Float, ...
15 |
# File 'lib/hcp/resources/address.rb', line 15 attribute :latitude |
#longitude ⇒ Float, ...
18 |
# File 'lib/hcp/resources/address.rb', line 18 attribute :longitude |
#state ⇒ String?
Returns the state, as Housecall Pro answers it.
10 |
# File 'lib/hcp/resources/address.rb', line 10 attribute :state |
#street ⇒ String?
Returns the street, as Housecall Pro answers it.
7 |
# File 'lib/hcp/resources/address.rb', line 7 attribute :street |
#street_line_2 ⇒ String?
Returns the street_line_2, as Housecall Pro answers it.
8 |
# File 'lib/hcp/resources/address.rb', line 8 attribute :street_line_2 |
#type ⇒ Symbol?
Returns :billing or :service.
21 |
# File 'lib/hcp/resources/address.rb', line 21 def type = @node['type']&.to_sym |
#zip ⇒ String?
Returns the zip, as Housecall Pro answers it.
11 |
# File 'lib/hcp/resources/address.rb', line 11 attribute :zip |