Module: Nylas::Model::Transferable::ClassMethods
- Defined in:
- lib/nylas/model/transferable.rb
Overview
Methods to call when tweaking Transferable classes
Instance Attribute Summary collapse
-
#attribute_recipients ⇒ Object
Returns the value of attribute attribute_recipients.
Instance Method Summary collapse
Instance Attribute Details
#attribute_recipients ⇒ Object
Returns the value of attribute attribute_recipients.
41 42 43 |
# File 'lib/nylas/model/transferable.rb', line 41 def attribute_recipients @attribute_recipients end |
Instance Method Details
#init_attribute_recipients ⇒ Object
43 44 45 |
# File 'lib/nylas/model/transferable.rb', line 43 def init_attribute_recipients self.attribute_recipients ||= {} end |
#transfer(*attributes, **opts) ⇒ Object
47 48 49 |
# File 'lib/nylas/model/transferable.rb', line 47 def transfer(*attributes, **opts) attributes.each { |name| self.attribute_recipients[name] = opts[:to] } end |