Module: AtlasEngine::AddressValidation::AbstractAddress
- Extended by:
- T::Helpers, T::Sig
- Includes:
- Kernel
- Included in:
- Address, Types::AddressValidation::AddressInput
- Defined in:
- app/models/atlas_engine/address_validation/abstract_address.rb
Constant Summary collapse
- ComponentType =
T.type_alias { T.nilable(String) }
Instance Method Summary collapse
-
#[](key) ⇒ Object
rubocop:disable Rails/Delegate.
- #address1 ⇒ Object
- #address2 ⇒ Object
- #city ⇒ Object
- #context ⇒ Object
- #country_code ⇒ Object
-
#keys ⇒ Object
rubocop:disable Rails/Delegate.
- #line2 ⇒ Object
- #neighborhood ⇒ Object
- #phone ⇒ Object
- #province_code ⇒ Object
- #street_name ⇒ Object
- #street_number ⇒ Object
- #to_h ⇒ Object
- #zip ⇒ Object
Instance Method Details
#[](key) ⇒ Object
rubocop:disable Rails/Delegate
56 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 56 def [](key) = to_h[key] # rubocop:disable Rails/Delegate |
#address1 ⇒ Object
14 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 14 def address1; end |
#address2 ⇒ Object
23 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 23 def address2; end |
#city ⇒ Object
32 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 32 def city; end |
#context ⇒ Object
50 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 50 def context; end |
#country_code ⇒ Object
41 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 41 def country_code; end |
#keys ⇒ Object
rubocop:disable Rails/Delegate
53 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 53 def keys = to_h.keys # rubocop:disable Rails/Delegate |
#line2 ⇒ Object
26 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 26 def line2; end |
#neighborhood ⇒ Object
29 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 29 def neighborhood; end |
#phone ⇒ Object
38 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 38 def phone; end |
#province_code ⇒ Object
35 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 35 def province_code; end |
#street_name ⇒ Object
17 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 17 def street_name; end |
#street_number ⇒ Object
20 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 20 def street_number; end |
#to_h ⇒ Object
47 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 47 def to_h; end |
#zip ⇒ Object
44 |
# File 'app/models/atlas_engine/address_validation/abstract_address.rb', line 44 def zip; end |