Method: Cyby::Kintone::Record#method_missing
- Defined in:
- lib/cyby/kintone/record.rb
#method_missing(method_name, *args) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/cyby/kintone/record.rb', line 43 def method_missing(method_name, *args) key = if @app.convert_to_camelized_field method_name.to_s.camelize(:lower) else method_name.to_s end if key[-1] == "=" self.[]=(key[0..-2], args[0]) else self.[](key) end end |