Class: Zillabyte::API::Logs

Inherits:
Base
  • Object
show all
Defined in:
lib/zillabyte/api/logs.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #request

Constructor Details

This class inherits a constructor from Zillabyte::API::Base

Instance Method Details

#get(flow_id, operation_id, options = {}) ⇒ Object

GET /flows/ID/logs



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/zillabyte/api/logs.rb', line 8

def get(flow_id, operation_id, options = {})
  
  options = {
  }.merge(options)
  
  since = ""
  if options[:since]
    since = "?since=#{URI::encode(options[:since])}"
  end
  
  res = @api.request(
    :expects  => 200,
    :method   => :get,
    :path     => "/flows/#{flow_id}/logs/#{operation_id}#{since}"
  )

  res.body

end