Module: Voog::API::Texts

Included in:
Client
Defined in:
lib/voog_api/api/texts.rb

Overview

Voog Text Contents API methods.

Instance Method Summary collapse

Instance Method Details

#text(id, params = {}) ⇒ Object

Get a single text content



19
20
21
# File 'lib/voog_api/api/texts.rb', line 19

def text(id, params = {})
  get "texts/#{id}", {query: params}
end

#texts(params = {}) ⇒ Object

List text contents



12
13
14
# File 'lib/voog_api/api/texts.rb', line 12

def texts(params = {})
  paginate 'texts', {query: params}
end

#update_text(id, data) ⇒ Object

Update a text content



26
27
28
# File 'lib/voog_api/api/texts.rb', line 26

def update_text(id, data)
  put "texts/#{id}", data
end