Class: Zillabyte::API::Sources

Inherits:
Base
  • Object
show all
Defined in:
lib/zillabyte/api/sources.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

#list(options = {}) ⇒ Object

GET /sources



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/zillabyte/api/sources.rb', line 5

def list(options = {})

  options = {
    # TODO
  }.merge(options)
  
  res = @api.request(
    :expects  => 200,
    :method   => :get,
    :path     => "/sources"
  )
  
  res.body

end