Class: Percy::Config
- Inherits:
-
Object
- Object
- Percy::Config
- Defined in:
- lib/percy/config.rb
Instance Attribute Summary collapse
- #access_token ⇒ Object
-
#api_url ⇒ String
Base URL for API requests.
-
#debug ⇒ Boolean
Whether or not to enable debug logging.
-
#default_widths ⇒ Object
List of default widths sent for every snapshot, unless overridden on a per-snapshot basis.
Instance Method Summary collapse
-
#keys ⇒ Array
List of configurable keys for Client.
Instance Attribute Details
#access_token ⇒ Object
28 29 30 |
# File 'lib/percy/config.rb', line 28 def access_token @access_token ||= ENV['PERCY_TOKEN'] end |
#api_url ⇒ String
Returns Base URL for API requests. Default: percy.io/api/v1/.
12 |
# File 'lib/percy/config.rb', line 12 attr_writer :access_token |
#debug ⇒ Boolean
Returns Whether or not to enable debug logging.
12 |
# File 'lib/percy/config.rb', line 12 attr_writer :access_token |
#default_widths ⇒ Object
List of default widths sent for every snapshot, unless overridden on a per-snapshot basis.
12 |
# File 'lib/percy/config.rb', line 12 attr_writer :access_token |
Instance Method Details
#keys ⇒ Array
List of configurable keys for Percy::Client
19 20 21 22 23 24 25 26 |
# File 'lib/percy/config.rb', line 19 def keys @keys ||= [ :access_token, :api_url, :debug, :default_widths, ] end |