Module: Awis::Utils::Variable
- Included in:
- Models::BaseEntity
- Defined in:
- lib/awis/utils/variable.rb
Instance Method Summary collapse
Instance Method Details
#custom_instance_variables(options) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/awis/utils/variable.rb', line 4 def custom_instance_variables() .each do |key, value| value = (value.class == String && value.empty?) ? nil : value instance_variable_set("@#{key}", value) end end |