Sha256: d22949e9af908cd08893d89e075bfb94dce04ea51493f1b329960735956b770c
Contents?: true
Size: 765 Bytes
Versions: 1
Compression:
Stored size: 765 Bytes
Contents
module StackExchange module StackOverflow class Statistics < Base extend Forwardable def_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 def initialize(hash) @struct = OpenStruct.new hash end class << self attr_reader :client def all(options = {}) request('/stats', nil, options) end private 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.1.6 | lib/pilha/stack_overflow/statistics.rb |