class Authlete::Model::Response::TokenListResponse

Attributes

accessTokens[RW]
access_tokens[RW]
access_tokens=[RW]
client[RW]
end[RW]
start[RW]
subject[RW]
totalCount[RW]
total_count[RW]
total_count=[RW]

Private Instance Methods

defaults() click to toggle source
# File lib/authlete/model/response/token-list-response.rb, line 42
def defaults
  {
    start:        nil,
    end:          nil,
    client:       nil,
    subject:      nil,
    totalCount:   0,
    accessTokens: nil
  }
end
set_params(hash) click to toggle source
# File lib/authlete/model/response/token-list-response.rb, line 53
def set_params(hash)
  @start        = hash[:start]
  @end          = hash[:end]
  @client       = Authlete::Model::Client.parse(hash[:client])
  @subject      = hash[:subject]
  @totalCount   = hash[:totalCount]
  @accessTokens = get_parsed_array(hash[:accessTokens]) { |e| Authlete::Model::Response::AccessToken.parse(e) }
end