Class: SeismicAPI::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/seismic_api.rb

Overview

Configuration holds the current configuration for the SeisimicAPI and provides defaults

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Configuration

Returns a new instance of Configuration.


41
42
43
# File 'lib/seismic_api.rb', line 41

def initialize(args = {})
  @base_url = args.fetch(:base_url) { "https://api.seismic.com/integration/v2" }
end

Instance Attribute Details

#base_urlObject

Returns the value of attribute base_url


39
40
41
# File 'lib/seismic_api.rb', line 39

def base_url
  @base_url
end