module Rubyoverflow class BadgeCounts attr_reader :gold attr_reader :silver attr_reader :bronze def initialize(hash, request_path = '') dash = BadgeCountsDash.new hash @gold = dash.gold @silver = dash.silver @bronze = dash.bronze end end class BadgeCountsDash < BaseDash property :gold property :silver property :bronze end end