Class: Percy::Client
- Inherits:
-
Object
- Object
- Percy::Client
- Includes:
- Builds, Connection, Resources, Snapshots
- Defined in:
- lib/percy/client.rb,
lib/percy/client/builds.rb,
lib/percy/client/version.rb,
lib/percy/client/resources.rb,
lib/percy/client/snapshots.rb,
lib/percy/client/connection.rb,
lib/percy/client/environment.rb
Defined Under Namespace
Modules: Builds, Connection, Environment, Resources, Snapshots Classes: BadGatewayError, BadRequestError, ClientError, CloudflareError, ConflictError, ConnectionFailed, Error, ForbiddenError, GatewayTimeoutError, HttpError, InternalServerError, NotFoundError, PaymentRequiredError, Resource, ServerError, ServiceUnavailableError, TimeoutError, UnauthorizedError
Constant Summary collapse
- VERSION =
'2.1.1'.freeze
Instance Attribute Summary collapse
-
#client_info ⇒ Object
readonly
Returns the value of attribute client_info.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#environment_info ⇒ Object
readonly
Returns the value of attribute environment_info.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Resources
Methods included from Snapshots
#create_snapshot, #finalize_snapshot
Methods included from Builds
#create_build, #finalize_build
Methods included from Connection
#_api_version, #_headers, #_reset_user_agent, #_ruby_version, #_user_agent, #connection, #get, #post
Constructor Details
Instance Attribute Details
#client_info ⇒ Object (readonly)
Returns the value of attribute client_info.
74 75 76 |
# File 'lib/percy/client.rb', line 74 def client_info @client_info end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
74 75 76 |
# File 'lib/percy/client.rb', line 74 def config @config end |
#environment_info ⇒ Object (readonly)
Returns the value of attribute environment_info.
74 75 76 |
# File 'lib/percy/client.rb', line 74 def environment_info @environment_info end |