class Reader

Attributes

city[RW]
email[RW]
house[RW]
name[RW]
street[RW]

Public Class Methods

new(name, email) click to toggle source
# File lib/reader.rb, line 4
def initialize(name, email)
  @name = name
  @email = email
end

Public Instance Methods

set_address(city, street, house) click to toggle source
# File lib/reader.rb, line 9
def set_address(city, street, house)
  @city = city
  @street = street
  @house = house
end
to_h() click to toggle source
# File lib/reader.rb, line 15
def to_h
  {
    name: name,
    email: email,
    city: city,
    street: street,
    house: house
  }
end