Class: Transcriber::Configuration
- Inherits:
-
Object
- Object
- Transcriber::Configuration
- Defined in:
- lib/transcriber/configuration.rb
Constant Summary collapse
- DefaultHandler =
proc {|keys| keys}
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
Instance Method Summary collapse
- #convert_input_keys ⇒ Object
- #convert_input_keys=(converter) ⇒ Object
- #date_format ⇒ Object
- #date_format=(format) ⇒ Object
- #false_value ⇒ Object
- #false_value=(value) ⇒ Object
- #true_value ⇒ Object
- #true_value=(value) ⇒ Object
Instance Attribute Details
#host ⇒ Object
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_keys ⇒ Object
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_format ⇒ Object
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_value ⇒ Object
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_value ⇒ Object
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 |