Class: PostcodeValidation::Domain::Address
- Inherits:
-
Object
- Object
- PostcodeValidation::Domain::Address
- Defined in:
- lib/postcode_validation/domain/address.rb
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(row:, key:) ⇒ Address
constructor
A new instance of Address.
- #label ⇒ Object
Constructor Details
#initialize(row:, key:) ⇒ Address
Returns a new instance of Address.
4 5 6 7 |
# File 'lib/postcode_validation/domain/address.rb', line 4 def initialize(row:, key:) @row = row @key = key end |
Instance Method Details
#id ⇒ Object
13 14 15 |
# File 'lib/postcode_validation/domain/address.rb', line 13 def id row['Id'] end |
#label ⇒ Object
9 10 11 |
# File 'lib/postcode_validation/domain/address.rb', line 9 def label "#{row['Text']}, #{row['Description']}" end |