Class: AtlasEngine::AddressValidation::Field
- Inherits:
-
Object
- Object
- AtlasEngine::AddressValidation::Field
- Extended by:
- T::Sig
- Defined in:
- app/models/atlas_engine/address_validation/field.rb
Constant Summary collapse
- Name =
T.type_alias { T.any(String, Symbol) }
- Value =
T.type_alias { T.nilable(String) }
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(name:, value:) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(name:, value:) ⇒ Field
Returns a new instance of Field.
19 20 21 22 |
# File 'app/models/atlas_engine/address_validation/field.rb', line 19 def initialize(name:, value:) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'app/models/atlas_engine/address_validation/field.rb', line 13 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
16 17 18 |
# File 'app/models/atlas_engine/address_validation/field.rb', line 16 def value @value end |
Instance Method Details
#attributes ⇒ Object
25 26 27 |
# File 'app/models/atlas_engine/address_validation/field.rb', line 25 def attributes { name: name, value: value } end |