Class: TheFuturest::Text
- Inherits:
-
Object
- Object
- TheFuturest::Text
- Includes:
- HTTParty
- Defined in:
- lib/futurest/text.rb
Class Method Summary collapse
Class Method Details
.chapters(query = {}) ⇒ Object
11 12 13 |
# File 'lib/futurest/text.rb', line 11 def self.chapters(query = {}) Chapter.parse get("/chapters", :query => query) end |
.paragraphs(query = {}) ⇒ Object
15 16 17 |
# File 'lib/futurest/text.rb', line 15 def self.paragraphs(query = {}) search query.merge({:regexp => "."}) end |