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