Class: Moov::Models::Components::CardAddress
- Inherits:
-
Object
- Object
- Moov::Models::Components::CardAddress
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/cardaddress.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(postal_code:, address_line1: nil, address_line2: nil, city: nil, state_or_province: nil, country: nil) ⇒ CardAddress
constructor
A new instance of CardAddress.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(postal_code:, address_line1: nil, address_line2: nil, city: nil, state_or_province: nil, country: nil) ⇒ CardAddress
Returns a new instance of CardAddress.
30 31 32 33 34 35 36 37 |
# File 'lib/moov/models/components/cardaddress.rb', line 30 def initialize(postal_code:, address_line1: nil, address_line2: nil, city: nil, state_or_province: nil, country: nil) @postal_code = postal_code @address_line1 = address_line1 @address_line2 = address_line2 @city = city @state_or_province = state_or_province @country = country end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/moov/models/components/cardaddress.rb', line 40 def ==(other) return false unless other.is_a? self.class return false unless @postal_code == other.postal_code 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 @state_or_province == other.state_or_province return false unless @country == other.country true end |