Class: Bitbucket::Connection
- Inherits:
-
Object
- Object
- Bitbucket::Connection
- Defined in:
- lib/bitbucket/connection.rb
Constant Summary collapse
- DEFAULT_API_VERSION =
'2.0'
- DEFAULT_BASE_URI =
'https://api.bitbucket.org/'
- DEFAULT_QUERY =
{}.freeze
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #connection ⇒ Object
-
#initialize(options = {}) ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize(options = {}) ⇒ Connection
Returns a new instance of Connection.
13 14 15 |
# File 'lib/bitbucket/connection.rb', line 13 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/bitbucket/connection.rb', line 9 def @options end |
Instance Method Details
#connection ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/bitbucket/connection.rb', line 17 def connection @connection ||= if app_password_connection? Bitbucket::AppPasswordConnection.new() else Bitbucket::OauthConnection.new() end end |