Module: Transcriber::Resource::InputParser
- Included in:
- Transcriber::Resource
- Defined in:
- lib/transcriber/resource/input_parser.rb
Instance Method Summary collapse
Instance Method Details
#to_input(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/transcriber/resource/input_parser.rb', line 4 def to_input( = {}) input = {} keys_to_input().each do |key| value = __send__(key.name) = .fetch(key.name, {without_nil: [:without_nil]}) input.merge! key.to_input(value, self, ) end input.with_indifferent_access end |