Class: PostcodeValidation::Domain::Address
- Inherits:
-
Object
- Object
- PostcodeValidation::Domain::Address
- Defined in:
- lib/postcode_validation/domain/address.rb
Instance Attribute Summary collapse
-
#place ⇒ Object
readonly
Returns the value of attribute place.
-
#street_address ⇒ Object
readonly
Returns the value of attribute street_address.
Instance Method Summary collapse
-
#initialize(street_address:, place:) ⇒ Address
constructor
A new instance of Address.
Constructor Details
#initialize(street_address:, place:) ⇒ Address
Returns a new instance of Address.
4 5 6 7 |
# File 'lib/postcode_validation/domain/address.rb', line 4 def initialize(street_address:, place:) @street_address = street_address @place = place end |
Instance Attribute Details
#place ⇒ Object (readonly)
Returns the value of attribute place.
9 10 11 |
# File 'lib/postcode_validation/domain/address.rb', line 9 def place @place end |
#street_address ⇒ Object (readonly)
Returns the value of attribute street_address.
9 10 11 |
# File 'lib/postcode_validation/domain/address.rb', line 9 def street_address @street_address end |