These are chat archives for dry-rb/chat

12th
Nov 2018
Tonni Tølbøll Lund Aagesen
@ta
Nov 12 2018 07:38
Oh, silly me :)
what is the right way of writing storing values in attributes - or is dry-struct not meant for that?
Nikita Shilnikov
@flash-gordon
Nov 12 2018 07:41
the right way is to create a new struct based on an existing one
i.e. user.new(name: 'John Doe')
.new is an instance method
Tonni Tølbøll Lund Aagesen
@ta
Nov 12 2018 07:49
@flash-gordon Great! thanks