Sha256: 3139dc4fa997bc397674aa75f09967c2136de09c31580d1104d893b0db119d2a

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

module StackExchange
  module StackOverflow
    class Statistics < Base

      setup_delegators :@struct, :total_questions, :total_unanswered, :total_answers,
                              :total_comments, :total_votes, :total_badges,
                              :total_users, :questions_per_minute, :answers_per_minute,
                              :badges_per_minute, :api_version

      class << self
        def all(options = {})
          request('/stats', nil, options)
        end

        def parse(response)
          Statistics.new response['statistics'].first
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pilha-0.2.2 lib/pilha/stack_overflow/statistics.rb