Class: KintsugiSDK::Models::Shared::ValidationAddress
- Inherits:
-
Object
- Object
- KintsugiSDK::Models::Shared::ValidationAddress
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kintsugi_sdk/models/shared/validationaddress.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(line1: nil, line2: nil, line3: nil, city: nil, state: nil, id: nil, county: nil, full_address: nil, country: 'US', postal_code: '') ⇒ ValidationAddress
constructor
A new instance of ValidationAddress.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(line1: nil, line2: nil, line3: nil, city: nil, state: nil, id: nil, county: nil, full_address: nil, country: 'US', postal_code: '') ⇒ ValidationAddress
Returns a new instance of ValidationAddress.
42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/kintsugi_sdk/models/shared/validationaddress.rb', line 42 def initialize(line1: nil, line2: nil, line3: nil, city: nil, state: nil, id: nil, county: nil, full_address: nil, country: 'US', postal_code: '') @line1 = line1 @line2 = line2 @line3 = line3 @city = city @state = state @id = id @county = county @full_address = full_address @country = country @postal_code = postal_code end |
Instance Method Details
#==(other) ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/kintsugi_sdk/models/shared/validationaddress.rb', line 56 def ==(other) return false unless other.is_a? self.class return false unless @line1 == other.line1 return false unless @line2 == other.line2 return false unless @line3 == other.line3 return false unless @city == other.city return false unless @state == other.state return false unless @id == other.id return false unless @county == other.county return false unless @full_address == other.full_address return false unless @country == other.country return false unless @postal_code == other.postal_code true end |