Method: SparkApi::Models::VowAccount#change_setting

Defined in:
lib/spark_api/models/vow_account.rb

#change_setting(key, val) ⇒ Object



34
35
36
37
38
# File 'lib/spark_api/models/vow_account.rb', line 34

def change_setting(key, val)
  attribute_will_change! "Settings"
  @attributes['Settings'] = {} if @attributes['Settings'].nil? || @attributes['Settings'] != Hash
  @attributes['Settings'][key.to_s] = val
end