Class: GustoEmbedded::Models::Operations::HomeAddress
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Operations::HomeAddress
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/operations/home_address.rb
Overview
Residential address on file for tax withholding and compliance mail.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(street_1:, city:, state:, zip:, street_2: nil) ⇒ HomeAddress
constructor
A new instance of HomeAddress.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(street_1:, city:, state:, zip:, street_2: nil) ⇒ HomeAddress
Returns a new instance of HomeAddress.
27 28 29 30 31 32 33 |
# File 'lib/gusto_embedded/models/operations/home_address.rb', line 27 def initialize(street_1:, city:, state:, zip:, street_2: nil) @street_1 = street_1 @city = city @state = state @zip = zip @street_2 = street_2 end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/gusto_embedded/models/operations/home_address.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @street_1 == other.street_1 return false unless @city == other.city return false unless @state == other.state return false unless @zip == other.zip return false unless @street_2 == other.street_2 true end |