Sha256: d306bb2714df3996249ce14c61d844cb7a42fb14a38dff6146ef68d8319545e6
Contents?: true
Size: 765 Bytes
Versions: 2
Compression:
Stored size: 765 Bytes
Contents
# frozen_string_literal: true if RUBY_VERSION <= '3.1' puts 'This example requires Ruby 3.1 or higher.' exit! 1 end task default: %i[bcdd_result_event_logs] task :config do require_relative 'config' end desc 'creates an account and an owner user through BCDD::Result' task bcdd_result_event_logs: %i[config] do result1 = Account::OwnerCreation.call( owner: { name: "\tJohn Doe \n", email: ' JOHN.doe@email.com', password: '123123123', password_confirmation: '123123123' } ) puts result1.inspect puts result2 = Account::OwnerCreation.call( uuid: "", owner: {} ).on_failure(:invalid_input) do |output| output[:input].errors.full_messages.each do |message| puts message end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bcdd-result-1.1.0 | examples/service_objects/Rakefile |
bcdd-result-1.0.0 | examples/service_objects/Rakefile |