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.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#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 |
#debug ⇒ Object
Returns the value of attribute debug.
10 11 12 |
# File 'lib/percy/config.rb', line 10 def debug @debug end |
#repo ⇒ Object
Returns the value of attribute repo.
11 12 13 |
# File 'lib/percy/config.rb', line 11 def repo @repo end |
Instance Method Details
#keys ⇒ Array
List of configurable keys for Percy::Client
15 16 17 18 19 20 21 22 |
# File 'lib/percy/config.rb', line 15 def keys @keys ||= [ :access_token, :api_url, :debug, :repo, ] end |