Method: DocuSign_WebForms::OAuth::Organization#initialize

Defined in:
lib/docusign_webforms/client/auth/oauth.rb

#initialize(attributes = {}) ⇒ Organization

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
# File 'lib/docusign_webforms/client/auth/oauth.rb', line 659

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  if attributes.has_key?(:'organizationId')
    self.organization_id = attributes[:'organizationId']
  end

  if attributes.has_key?(:'links')
    if (value = attributes[:'links']).is_a?(Array)
      self.links = value
    end
  end
end