class Stackexchange::Client
Constants
- METHODS
Public Class Methods
new(*args)
click to toggle source
api_key
# File lib/stackexchange-ruby.rb, line 11 def initialize(*args) add_query_options! :api_key => args.shift, :site => 'stackoverflow' METHODS.each do |m| self.class.send(:define_method, m) do |*opts| resp = (get "#{m}", :extra_query => opts.shift) end end end