Class: Bintray::Client::Ruby::HttpClient
- Inherits:
-
Object
- Object
- Bintray::Client::Ruby::HttpClient
- Defined in:
- lib/bintray/client/ruby/http_client.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{ base: 'https://api.bintray.com/api', version: 'v1', username: nil, password: nil, debug: false, logger: nil, logger_resource: nil, # use to inspect log contents i.e. Buffer or File }
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #api ⇒ Object
-
#initialize(options = {}) ⇒ HttpClient
constructor
A new instance of HttpClient.
- #log ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ HttpClient
Returns a new instance of HttpClient.
19 20 21 22 |
# File 'lib/bintray/client/ruby/http_client.rb', line 19 def initialize( = {}) @options = () create_connection end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
7 8 9 |
# File 'lib/bintray/client/ruby/http_client.rb', line 7 def connection @connection end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/bintray/client/ruby/http_client.rb', line 7 def @options end |