Module: Draisine::Concerns::AttributesMapping::ClassMethods
- Defined in:
- lib/draisine/concerns/attributes_mapping.rb
Instance Attribute Summary collapse
-
#salesforce_mapping ⇒ Object
Returns the value of attribute salesforce_mapping.
Instance Method Summary collapse
Instance Attribute Details
#salesforce_mapping ⇒ Object
Returns the value of attribute salesforce_mapping.
9 10 11 |
# File 'lib/draisine/concerns/attributes_mapping.rb', line 9 def salesforce_mapping @salesforce_mapping end |
Instance Method Details
#salesforce_reverse_mapping ⇒ Object
15 16 17 |
# File 'lib/draisine/concerns/attributes_mapping.rb', line 15 def salesforce_reverse_mapping @salesforce_reverse_mapping ||= salesforce_mapping.map(&:reverse).to_h end |
#salesforce_synced_attributes ⇒ Object
11 12 13 |
# File 'lib/draisine/concerns/attributes_mapping.rb', line 11 def salesforce_synced_attributes @salesforce_synced_attributes ||= salesforce_mapping.keys end |