Class: TCR::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
# File 'lib/tcr/configuration.rb', line 7

def initialize
  reset_defaults!
end

Instance Attribute Details

#block_for_readsObject

Returns the value of attribute block_for_reads.



5
6
7
# File 'lib/tcr/configuration.rb', line 5

def block_for_reads
  @block_for_reads
end

#cassette_library_dirObject

Returns the value of attribute cassette_library_dir.



5
6
7
# File 'lib/tcr/configuration.rb', line 5

def cassette_library_dir
  @cassette_library_dir
end

#formatObject

Returns the value of attribute format.



5
6
7
# File 'lib/tcr/configuration.rb', line 5

def format
  @format
end

#hit_allObject

Returns the value of attribute hit_all.



5
6
7
# File 'lib/tcr/configuration.rb', line 5

def hit_all
  @hit_all
end

#hook_tcp_portsObject

Returns the value of attribute hook_tcp_ports.



5
6
7
# File 'lib/tcr/configuration.rb', line 5

def hook_tcp_ports
  @hook_tcp_ports
end

Instance Method Details

#reset_defaults!Object



11
12
13
14
15
16
17
# File 'lib/tcr/configuration.rb', line 11

def reset_defaults!
  @cassette_library_dir = 'fixtures/tcr_cassettes'
  @hook_tcp_ports = []
  @block_for_reads = false
  @format = 'json'
  @hit_all = false
end