Class: BreakingBad::Quote

Inherits:
MethodsRequest show all
Defined in:
lib/breaking_bad/endpoints/quote.rb

Instance Method Summary collapse

Methods inherited from MethodsRequest

#all, #find, #initialize, #random

Constructor Details

This class inherits a constructor from BreakingBad::MethodsRequest

Instance Method Details

#find_by_author(author) ⇒ Object



5
6
7
# File 'lib/breaking_bad/endpoints/quote.rb', line 5

def find_by_author(author)
  client.get("#{endpoint_name}?author=#{author}")
end

#find_by_series(series) ⇒ Object



9
10
11
# File 'lib/breaking_bad/endpoints/quote.rb', line 9

def find_by_series(series)
  client.get("#{endpoint_name}?series=#{series}")
end