Class: Transcriber::Configuration

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

Constant Summary collapse

DefaultHandler =
proc {|keys| keys}

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/transcriber/configuration.rb', line 3

def host
  @host
end

Instance Method Details

#convert_input_keysObject



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

def convert_input_keys
  @convert_input_keys || DefaultHandler
end

#convert_input_keys=(converter) ⇒ Object



11
12
13
# File 'lib/transcriber/configuration.rb', line 11

def convert_input_keys=(converter)
  @convert_input_keys = converter
end

#date_formatObject



31
32
33
# File 'lib/transcriber/configuration.rb', line 31

def date_format
  @date_format
end

#date_format=(format) ⇒ Object



35
36
37
# File 'lib/transcriber/configuration.rb', line 35

def date_format=(format)
  @date_format = format
end

#false_valueObject



23
24
25
# File 'lib/transcriber/configuration.rb', line 23

def false_value
  @false || false
end

#false_value=(value) ⇒ Object



27
28
29
# File 'lib/transcriber/configuration.rb', line 27

def false_value=(value)
  @false = value
end

#true_valueObject



15
16
17
# File 'lib/transcriber/configuration.rb', line 15

def true_value
  @true || true
end

#true_value=(value) ⇒ Object



19
20
21
# File 'lib/transcriber/configuration.rb', line 19

def true_value=(value)
  @true = value
end