Module: PexelsApiClient
- Defined in:
- lib/pexels_api_client.rb,
lib/pexels_api_client/base.rb,
lib/pexels_api_client/photo.rb,
lib/pexels_api_client/video.rb,
lib/pexels_api_client/config.rb,
lib/pexels_api_client/errors.rb,
lib/pexels_api_client/version.rb
Defined Under Namespace
Modules: Config Classes: Base, Photo, Video
Constant Summary collapse
- BASE_URL =
'https://api.pexels.com/'
- PexelsApiClientError =
Class.new StandardError
- BadRequestError =
Class.new StandardError
- ServerError =
Class.new StandardError
- ApiKeyError =
Class.new StandardError
- NotApiKeyError =
Class.new ArgumentError
- VERSION =
'0.1.4'
Class Method Summary collapse
Class Method Details
.config ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/pexels_api_client.rb', line 15 def self.config if block_given? yield(PexelsApiClient::Config) else PexelsApiClient::Config end end |