class PostcodeValidation::Domain::Address

Attributes

key[R]
row[R]

Public Class Methods

new(row:, key:) click to toggle source
# File lib/postcode_validation/domain/address.rb, line 4
def initialize(row:, key:)
  @row = row
  @key = key
end

Public Instance Methods

id() click to toggle source
# File lib/postcode_validation/domain/address.rb, line 13
def id
  row['Id']
end
label() click to toggle source
# File lib/postcode_validation/domain/address.rb, line 9
def label
  "#{row['Text']}, #{row['Description']}"
end