Class: Demux::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/demux.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.


45
46
47
# File 'lib/demux.rb', line 45

def initialize(args = {})
  @default_demuxer = args.fetch(:default_demuxer) { Demux::Demuxer }
end

Instance Attribute Details

#default_demuxerObject

Returns the value of attribute default_demuxer


43
44
45
# File 'lib/demux.rb', line 43

def default_demuxer
  @default_demuxer
end