Class: ExceptionOverflow::StackOverflow

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/exception_overflow/stack_overflow.rb

Class Method Summary collapse

Class Method Details

.search(options = {}) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/exception_overflow/stack_overflow.rb', line 9

def self.search(options = {})
  options.merge!({
    answers: 1,
    site: 'stackoverflow',
    sort: 'relevance',
    tagged: 'ruby'
  })

  get('/search/advanced', { query: options })
end