Module: Voog::API::Texts

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

Instance Method Summary collapse

Instance Method Details

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

Get a single text content



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

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

#texts(params = {}) ⇒ Object

List text contents



6
7
8
# File 'lib/voog_api/api/texts.rb', line 6

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

#update_text(id, data) ⇒ Object

Update a text content



16
17
18
# File 'lib/voog_api/api/texts.rb', line 16

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