Method: DocuSign_Maestro::AccessTokenResponse#initialize
- Defined in:
- lib/docusign_maestro/models/access_token_response.rb
permalink #initialize(attributes = {}) ⇒ AccessTokenResponse
Initializes the object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/docusign_maestro/models/access_token_response.rb', line 45 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?(:'access_token') self.access_token = attributes[:'access_token'] end if attributes.has_key?(:'expires_in') self.expires_in = attributes[:'expires_in'] end if attributes.has_key?(:'token_type') self.token_type = attributes[:'token_type'] end end |