Class: Percy::Config
- Inherits:
-
Object
- Object
- Percy::Config
- Defined in:
- lib/percy/config.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#api_url ⇒ String
Base URL for API requests.
-
#repo ⇒ Object
Returns the value of attribute repo.
Instance Method Summary collapse
-
#keys ⇒ Array
List of configurable keys for Client.
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
8 9 10 |
# File 'lib/percy/config.rb', line 8 def access_token @access_token end |
#api_url ⇒ String
Returns Base URL for API requests. Default: percy.io/api/v1/.
8 |
# File 'lib/percy/config.rb', line 8 attr_accessor :access_token |
#repo ⇒ Object
Returns the value of attribute repo.
10 11 12 |
# File 'lib/percy/config.rb', line 10 def repo @repo end |
Instance Method Details
#keys ⇒ Array
List of configurable keys for Percy::Client
14 15 16 17 18 19 20 |
# File 'lib/percy/config.rb', line 14 def keys @keys ||= [ :access_token, :api_url, :repo, ] end |