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