Class: Sprintly::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/sprintly-data-ruby/connection.rb

Class Method Summary collapse

Class Method Details

.connectionObject



9
10
11
12
13
# File 'lib/sprintly-data-ruby/connection.rb', line 9

def self.connection
  @@connection ||= Faraday.new('https://sprint.ly/api').tap do |f|
    f.basic_auth(ENV['SPRINTLY_EMAIL'], ENV['SPRINTLY_API_KEY'])
  end
end

.get(*args) ⇒ Object



5
6
7
# File 'lib/sprintly-data-ruby/connection.rb', line 5

def self.get(*args)
  connection.get(*args)
end