Method: Bitbucket::Connection#connection

Defined in:
lib/bitbucket/connection.rb

#connectionObject



17
18
19
20
21
22
23
# File 'lib/bitbucket/connection.rb', line 17

def connection
  @connection ||= if api_connection?
                    Bitbucket::ApiConnection.new(options)
                  else
                    Bitbucket::OauthConnection.new(options)
                  end
end