module Pexels

Constants

VERSION

Attributes

api_base_url[R]
api_version[R]

Public Class Methods

local_headers() click to toggle source

Local headers can be defined inside a `.headers` file at the project root, with the following format:

header1=value header2=value etc.

# File lib/pexels.rb, line 15
def local_headers
  @local_headers ||= if File.exist?('.headers')
      File.read('.headers').split.to_h { |header| header.split('=') }
    else
      {}
    end
end