Class: Moov::Models::Components::AddressSuggestion

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/addresssuggestion.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(address_line1: nil, address_line2: nil, city: nil, entries: nil, postal_code: nil, state_or_province: nil) ⇒ AddressSuggestion

Returns a new instance of AddressSuggestion.



30
31
32
33
34
35
36
37
# File 'lib/moov/models/components/addresssuggestion.rb', line 30

def initialize(address_line1: nil, address_line2: nil, city: nil, entries: nil, postal_code: nil, state_or_province: nil)
  @address_line1 = address_line1
  @address_line2 = address_line2
  @city = city
  @entries = entries
  @postal_code = postal_code
  @state_or_province = state_or_province
end

Instance Method Details

#==(other) ⇒ Object



40
41
42
43
44
45
46
47
48
49
# File 'lib/moov/models/components/addresssuggestion.rb', line 40

def ==(other)
  return false unless other.is_a? self.class
  return false unless @address_line1 == other.address_line1
  return false unless @address_line2 == other.address_line2
  return false unless @city == other.city
  return false unless @entries == other.entries
  return false unless @postal_code == other.postal_code
  return false unless @state_or_province == other.state_or_province
  true
end