Skip to content

Inspection when initializing from objects #14

@shluboto

Description

@shluboto

Given a boundary initialized with an object instead of a hash inspect currently outputs all of the objects that were used to create the boundary (e.G @o= or @t=).

Current output:

<GuessTheNumber::UseCases::StartGame::Game:0x00007fa6d6871278 @o={:question=>#<Quizzes::Entities::Question:0x00007fa6d6871b60 @quiz_uid=62, @title="Guess the number!", @solution=862, @uid=62>}, @t=#<Quizzes::Entities::QuizRun:0x00007fa6d68712c8 @quiz_uid=62, @candidate_uid=1, @points=0, @tries=0, @current_question=#<Quizzes::Entities::Question:0x00007fa6d6871b60 @quiz_uid=62, @title="Guess the number!", @solution=862, @uid=62>, @current_question_uid=62, @uid=62>, @question=#<GuessTheNumber::UseCases::StartGame::Question:0x00007fa6d6871110 @o=nil, @t=#<Quizzes::Entities::Question:0x00007fa6d6871b60 @quiz_uid=62, @title="Guess the number!", @solution=862, @uid=62>>>

Expected output:

<GuessTheNumber::UseCases::StartGame::Game:0x00007fa6d6871278 @o=nil, @t={:quiz_uid =>62, :candidate_uid=>1, :points=>0, :tries=>0, :question=>{:quiz_uid=62, :title=>"Guess the number!", :solution=>862, :uid=>62}>

Shouldn't we remove those from inspection just like we remove @hash when the boundary was initialized with a hash?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions