Module: Assently::ApiMappers::CaseOptionsMapper
- Defined in:
- lib/assently/api_mappers/case_options_mapper.rb
Class Method Summary collapse
Class Method Details
.to_api(options = {}, mappers = self.mappers) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/assently/api_mappers/case_options_mapper.rb', line 8 def self.to_api = {}, mappers = self.mappers .reduce({}) do |api_hash, (client_key, value)| if mappers.key?(client_key) api_hash.merge(self.map(client_key, value, mappers)) else api_hash end end || {} end |