Class: PairProgrammer::Api::System

Inherits:
Object
  • Object
show all
Defined in:
lib/pairprogrammer/api/system.rb

Class Method Summary collapse

Class Method Details

.client_exception(command, exception, version) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/pairprogrammer/api/system.rb', line 10

def self.client_exception(command, exception, version)
    body = {
        command: command,
        exception: exception.class.to_s,
        message: exception.message,
        backtrace: exception.backtrace,
        version: version
    }
    Client.new.post('/api/v1/client_exception', body)
end

.versionsObject



6
7
8
# File 'lib/pairprogrammer/api/system.rb', line 6

def self.versions
    Client.new.get('/api/v1/versions', {})
end