Sha256: f892ed6b6768058aba46a298014145928e971b4e4cf6a08cc1b1dc208b840199
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 Bytes
Contents
module Docusigner class UserSettings < Docusigner::Base belongs_to :user singleton self.collection_name = "settings" self.element_name = "settings" # the create endpoint requires attributes to be nested under newUsers def as_json { "userSettings" => user_settings.map(&:as_json) } end def load(attributes, remove_root = false) super({:user_settings => attributes}, remove_root) end def set(key, value) user_settings.detect{|us| key == us.name}.value = value end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
docusigner-0.0.9 | lib/docusigner/user_settings.rb |
docusigner-0.0.8 | lib/docusigner/user_settings.rb |