Class: OpenSesame::Github::API

Inherits:
Object
  • Object
show all
Defined in:
lib/opensesame/github/api.rb

Instance Method Summary collapse

Instance Method Details

#get(path = nil) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/opensesame/github/api.rb', line 11

def get(path = nil)
  response = connection.get(path)
  if response.success?
    response.body
  else
    nil
  end
end