class Authlete::Model::Request::TokenRequest
Attributes
Private Instance Methods
Source
# File lib/authlete/model/request/token-request.rb, line 52 def defaults { parameters: nil, clientId: nil, clientSecret: nil, properties: nil, clientCertificate: nil, clientCertificatePath: nil, dpop: nil, htu: nil, htm: nil } end
Source
# File lib/authlete/model/request/token-request.rb, line 66 def set_params(hash) @parameters = hash[:parameters] @clientId = hash[:clientId] @clientSecret = hash[:clientSecret] @properties = get_parsed_array(hash[:properties]) { |e| Authlete::Model::Property.parse(e) } @clientCertificate = hash[:clientCertificate] @clientCertificatePath = hash[:clientCertificatePath] @dpop = hash[:dpop] @htu = hash[:htu] @htm = hash[:htm] end
Source
# File lib/authlete/model/request/token-request.rb, line 78 def to_hash_value(key, var) raw_val = instance_variable_get(var) case key when :properties raw_val&.map { |e| e.to_hash } else raw_val end end