Class: JeraPayment::Transfer
Instance Method Summary
collapse
#api_action, #has_create_callback?, #has_destroy_callback?, #has_update_callback?
Instance Method Details
#custom_variables ⇒ Object
16
17
18
|
# File 'lib/jera_payment/models/transfer.rb', line 16
def custom_variables
ActiveSupport::JSON.decode(self[:custom_variables]).map{ |item| item.deep_symbolize_keys } if self[:custom_variables]
end
|
#custom_variables=(value) ⇒ Object
12
13
14
|
# File 'lib/jera_payment/models/transfer.rb', line 12
def custom_variables=(value)
write_attribute(:custom_variables, value&.to_json)
end
|