Method: Dropbox::Sign::SubSigningOptions#to_hash
- Defined in:
- lib/dropbox-sign/models/sub_signing_options.rb
#to_hash(include_nil = true) ⇒ Hash
Returns the object in the form of hash
311 312 313 314 315 316 317 318 319 320 321 322 323 324 |
# File 'lib/dropbox-sign/models/sub_signing_options.rb', line 311 def to_hash(include_nil = true) hash = {} self.class.merged_attributes.each_pair do |attr, param| value = self.send(attr) if value.nil? next unless include_nil is_nullable = self.class.merged_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value, include_nil) end hash end |