class MetalArchives::Configuration

Contains configuration options

Attributes

app_contact[RW]

Required. Application contact email (used in request header)

app_name[RW]

Required. Application name (used in request header)

app_version[RW]

Required. Application version (used in request header)

cache_size[RW]

Cache size (per object class)

default_endpoint[R]
endpoint[RW]

Override Metal Archives endpoint (defaults to www.metal-archives.com/)

endpoint_password[RW]
endpoint_user[RW]

Endpoint HTTP Basic authentication

logger[RW]

Logger instance

middleware[RW]

Additional Faraday middleware

request_rate[RW]

Request throttling rate (in seconds per request per path)

request_timeout[RW]

Request timeout (in seconds per request per path)

Public Class Methods

new() click to toggle source

Default configuration values

# File lib/metal_archives/configuration.rb, line 65
def initialize
  @default_endpoint = "https://www.metal-archives.com/"
  @throttle_rate = 1
  @throttle_wait = 3
  @logger = Logger.new STDOUT
  @cache_size = 100
end