Module: PexelsApiClient::Config

Defined in:
lib/pexels_api_client/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



6
7
8
# File 'lib/pexels_api_client/config.rb', line 6

def api_key
  @api_key
end

.base_urlObject

Returns the value of attribute base_url.



6
7
8
# File 'lib/pexels_api_client/config.rb', line 6

def base_url
  @base_url
end

Class Method Details

.resetObject



8
9
10
11
# File 'lib/pexels_api_client/config.rb', line 8

def reset
  @api_key = nil
  @base_url = PexelsApiClient::BASE_URL
end