class Authlete::Model::Request::TokenRequest
Attributes
clientCertificate[RW]
clientCertificatePath[RW]
clientId[RW]
clientSecret[RW]
client_certificate[RW]
client_certificate=[RW]
client_certificate_path[RW]
client_certificate_path=[RW]
client_id[RW]
client_id=[RW]
client_secret[RW]
client_secret=[RW]
dpop[RW]
htm[RW]
htu[RW]
parameters[RW]
properties[RW]
Private Instance Methods
defaults()
click to toggle 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
set_params(hash)
click to toggle 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
to_hash_value(key, var)
click to toggle 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