Class: PostcodeValidation::Domain::Address

Inherits:
Object
  • Object
show all
Defined in:
lib/postcode_validation/domain/address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#placeObject (readonly)

Returns the value of attribute place.



9
10
11
# File 'lib/postcode_validation/domain/address.rb', line 9

def place
  @place
end

#street_addressObject (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