Class: StackExchange::StackOverflow::Statistics
- Defined in:
- lib/pilha/stack_overflow/statistics.rb
Class Method Summary collapse
Methods inherited from Base
#api_methods, client, #initialize, parse_with_class, request, setup_delegators
Constructor Details
This class inherits a constructor from StackExchange::StackOverflow::Base
Class Method Details
.all(options = {}) ⇒ Object
11 12 13 |
# File 'lib/pilha/stack_overflow/statistics.rb', line 11 def all( = {}) request('/stats', nil, ) end |
.parse(response) ⇒ Object
15 16 17 |
# File 'lib/pilha/stack_overflow/statistics.rb', line 15 def parse(response) Statistics.new response['statistics'].first end |