Module: You
- Defined in:
- lib/you.rb,
lib/you/error.rb,
lib/you/client.rb,
lib/you/version.rb,
lib/you/configuration.rb
Defined Under Namespace
Classes: BadGatewayError, BadRequestError, Client, Configuration, Error, ForbiddenError, GatewayTimeoutError, InternalServerError, NotFoundError, RateLimitError, ServiceUnavailableError, UnauthorizedError, UnprocessableEntityError
Constant Summary collapse
- VERSION =
"0.1.4".freeze
Class Method Summary collapse
-
.client ⇒ Object
A convenience method to access a default client directly.
- .configuration ⇒ Object
- .configure {|configuration| ... } ⇒ Object
Class Method Details
.client ⇒ Object
A convenience method to access a default client directly
16 17 18 |
# File 'lib/you.rb', line 16 def client @client ||= You::Client.new end |
.configuration ⇒ Object
7 8 9 |
# File 'lib/you.rb', line 7 def configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
11 12 13 |
# File 'lib/you.rb', line 11 def configure yield(configuration) end |