Class: CircleCi::Config
- Inherits:
-
Object
- Object
- CircleCi::Config
- Defined in:
- lib/circleci/config.rb
Overview
Config class used internally. Configure API calls using AlPapi.configure
Constant Summary collapse
- VERSION =
'v1'- DEFAULT_HOST =
"https://circleci.com/api/#{VERSION}"- DEFAULT_PORT =
80
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
19 20 21 22 |
# File 'lib/circleci/config.rb', line 19 def initialize @host = DEFAULT_HOST @port = DEFAULT_PORT end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
13 14 15 |
# File 'lib/circleci/config.rb', line 13 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
13 14 15 |
# File 'lib/circleci/config.rb', line 13 def port @port end |
#token ⇒ Object
Returns the value of attribute token.
13 14 15 |
# File 'lib/circleci/config.rb', line 13 def token @token end |