Class: Cloverly::Source

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/cloverly/source.rb

Class Method Summary collapse

Methods included from Base

#attributes=, included, #initialize, #json=, #to_json

Class Method Details

.listObject



9
10
11
# File 'lib/cloverly/source.rb', line 9

def list
  Cloverly::Source.parse(Cloverly.default, Cloverly.default.get("/2019-03-beta/offsets"))
end

.retrieve(slug) ⇒ Object



5
6
7
# File 'lib/cloverly/source.rb', line 5

def retrieve(slug)
  Cloverly::Source.parse(Cloverly.default, Cloverly.default.get("/2019-03-beta/offsets/#{slug}"))
end