Class: CiToolkit::SeeTestBot::Credentials
- Inherits:
-
Object
- Object
- CiToolkit::SeeTestBot::Credentials
- Defined in:
- lib/ci_toolkit/seetest_bot.rb
Overview
Provides a base url, an endpoint and an access token that can be used to interact with the SeeTest web service
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
Instance Method Summary collapse
-
#initialize(base_url = ENV.fetch("SEETEST_BASE_URL", nil), access_token = ENV.fetch("SEETEST_ACCESS_TOKEN", nil)) ⇒ Credentials
constructor
A new instance of Credentials.
Constructor Details
#initialize(base_url = ENV.fetch("SEETEST_BASE_URL", nil), access_token = ENV.fetch("SEETEST_ACCESS_TOKEN", nil)) ⇒ Credentials
Returns a new instance of Credentials.
17 18 19 20 21 22 23 |
# File 'lib/ci_toolkit/seetest_bot.rb', line 17 def initialize( base_url = ENV.fetch("SEETEST_BASE_URL", nil), access_token = ENV.fetch("SEETEST_ACCESS_TOKEN", nil) ) @base_url = base_url @access_token = access_token end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
15 16 17 |
# File 'lib/ci_toolkit/seetest_bot.rb', line 15 def access_token @access_token end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
15 16 17 |
# File 'lib/ci_toolkit/seetest_bot.rb', line 15 def base_url @base_url end |