Sha256: 3e9e1f213292abf2fc4900123fc45584b7072b7ee57b6c1b8764226ef94a623a

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyoverflow-1.0.2 lib/rubyoverflow/badgeCounts.rb