class ShotgridApiRuby::ServerInfo
Attributes
connection[R]
Public Class Methods
new(connection)
click to toggle source
# File lib/shotgrid_api_ruby/server_info.rb, line 5 def initialize(connection) @connection = connection end
Public Instance Methods
get()
click to toggle source
# File lib/shotgrid_api_ruby/server_info.rb, line 11 def get resp = @connection.get resp_body = JSON.parse(resp.body) if resp.status >= 300 raise ShotgridCallError.new( response: resp, message: "Error while getting server infos: #{resp_body['errors']}", ) end data = resp_body['data'] OpenStruct.new(data) end