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



6
7
8
9
10
11
12
# File 'lib/awis/utils/variable.rb', line 6

def custom_instance_variables(options)
  options.each do |key, value|
    value = value.class == String && value.empty? ? nil : value

    instance_variable_set("@#{key}", value)
  end
end