51c145d2ce
- Release scrape on Github - Add presentation video - Add demonstration link for gestionnaire and user
18 lines
296 B
Ruby
18 lines
296 B
Ruby
class Github::API
|
|
|
|
def self.base_uri
|
|
'https://api.github.com'
|
|
end
|
|
|
|
def self.latest_release
|
|
call '/repos/sgmap/tps/releases/latest'
|
|
end
|
|
|
|
private
|
|
|
|
def self.call(end_point, params = {})
|
|
RestClient::Resource.new(
|
|
base_uri+end_point
|
|
).get(params: params)
|
|
end
|
|
end
|