Class: Percy::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/percy/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject



28
29
30
# File 'lib/percy/config.rb', line 28

def access_token
  @access_token ||= ENV['PERCY_TOKEN']
end

#api_urlString

Returns Base URL for API requests. Default: percy.io/api/v1/.

Returns:



12
# File 'lib/percy/config.rb', line 12

attr_writer :access_token

#debugBoolean

Returns Whether or not to enable debug logging.

Returns:

  • (Boolean)

    Whether or not to enable debug logging.



12
# File 'lib/percy/config.rb', line 12

attr_writer :access_token

#default_widthsObject

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

#keysArray

List of configurable keys for Percy::Client

Returns:

  • (Array)

    Option keys.



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