Sha256: 9d4565df287f3f90653d9e8223ebfade2494bafc2a002438f72ce9a94065efdb

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

module Alma
  module ApiDefaults

    def apikey
      Alma.configuration.apikey
    end

    def region
      Alma.configuration.region
    end

    def headers
      { "Authorization": "apikey #{self.apikey}",
      "Accept": "application/json",
      "Content-Type": "application/json" }
    end

    def bibs_base_path
      "#{self.region}/almaws/v1/bibs"
    end

    def users_base_path
      "#{self.region}/almaws/v1/users"
    end

    def timeout
      Alma.configuration.timeout
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alma-0.3.1 lib/alma/api_defaults.rb