Module: Inthegra::Client::Lines
- Included in:
- Inthegra::Client
- Defined in:
- lib/inthegra/client/lines.rb
Overview
Define methods related to lines
Instance Method Summary collapse
-
#line_search(query) ⇒ Array::Line
Return a list of all searched lines.
-
#lines ⇒ Array::Line
Return a list of all lines.
Instance Method Details
#line_search(query) ⇒ Array::Line
Return a list of all searched lines
27 28 29 30 31 |
# File 'lib/inthegra/client/lines.rb', line 27 def line_search(query) response = get('linhas', { busca: URI::encode(query) }) CollectionSerializer.parse(response, Line) end |
#lines ⇒ Array::Line
Return a list of all lines
13 14 15 16 17 |
# File 'lib/inthegra/client/lines.rb', line 13 def lines response = get('linhas') CollectionSerializer.parse(response, Line) end |