Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion lib/gcore/api/systems/syncs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@ module Gcore
class Api
class Systems
class Syncs

def self.show(params)

local_params = params.clone
id = local_params[:id]
local_params.delete(:id)

JSON.parse(RestClient.get("#{Gcore::Api.endpoint}/systems/syncs/#{id}",
:params => local_params,
:content_type => :json,
:accept => :json,
:timeout => -1,
:open_timeout => -1,
:authorization => Gcore::Api.authorization), {symbolize_names: true})

end
end
end
end
Expand Down