Class: Moov::Models::Components::AchLocation
- Inherits:
-
Object
- Object
- Moov::Models::Components::AchLocation
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/achlocation.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(address:, city:, postal_code:, postal_code_extension:, state:) ⇒ AchLocation
constructor
A new instance of AchLocation.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(address:, city:, postal_code:, postal_code_extension:, state:) ⇒ AchLocation
Returns a new instance of AchLocation.
28 29 30 31 32 33 34 |
# File 'lib/moov/models/components/achlocation.rb', line 28 def initialize(address:, city:, postal_code:, postal_code_extension:, state:) @address = address @city = city @postal_code = postal_code @postal_code_extension = postal_code_extension @state = state end |
Instance Method Details
#==(other) ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/moov/models/components/achlocation.rb', line 37 def ==(other) return false unless other.is_a? self.class return false unless @address == other.address return false unless @city == other.city return false unless @postal_code == other.postal_code return false unless @postal_code_extension == other.postal_code_extension return false unless @state == other.state true end |