Module: RestModel::Embeddable::Sender
- Included in:
- RestModel::Embeddable
- Defined in:
- lib/rest_model/key/embeddable/sender.rb
Instance Method Summary collapse
Instance Method Details
#to_source!(value, resource, options = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/rest_model/key/embeddable/sender.rb', line 4 def to_source!(value, resource, = {}) return {} if value.nil? fields ? to_multiple_source(value, ) : to_single_source(value, ) end |