class Docusigner::UserSettings

Public Instance Methods

as_json() click to toggle source

the create endpoint requires attributes to be nested under newUsers

# File lib/docusigner/user_settings.rb, line 10
def as_json
  { "userSettings" => user_settings.map(&:as_json) }
end
load(attributes, remove_root = false) click to toggle source
Calls superclass method
# File lib/docusigner/user_settings.rb, line 14
def load(attributes, remove_root = false)
  super({:user_settings => attributes}, remove_root)
end
set(key, value) click to toggle source
# File lib/docusigner/user_settings.rb, line 18
def set(key, value)
  user_settings.detect{|us| key == us.name}.value = value
end