Update dbc_object.rb

Fix the bug specified in issue #2
https://github.com/Devbootcamp/dbc-ruby/issues/2