These are chat archives for dry-rb/chat
Dry::Types::Struct, correct? Is the construct of attr_accessors like
user.name =part of dry-rb? Because It seems that dry-types doesn't provide these accessors
result = schema.call(params[:photo]) if result.success? photo = Photo.new(result.output) Repository.persist(photo) end
image_changesmethod/methods that the subsequent step could query
UpdatedBlogPostobject or something, something which can tell any other users of that object whether images associated with that post have been changed...
class MyContext include Anima.new(:current_user, :input) end
otherwiseto the result_matcher =P
m.otherwiselast in your matcher block, it’ll work.
undefined method 'try'for a Dry::Types::Struct I tried creating. Is that a method dry-types is expecting to be defined somewhere else?