Class: CiToolkit::SeeTestBot::Credentials

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_tokenObject (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_urlObject (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