Sha256: fc732118733641d316cbcf81635e2d7603aecbd82e405f72dc22f0173ab76359
Contents?: true
Size: 316 Bytes
Versions: 1
Compression:
Stored size: 316 Bytes
Contents
# frozen_string_literal: true module Masks class SessionResource include Alba::Resource attributes :id, :ip_address, :user_agent, :fingerprint, :scopes attribute :authorized, &:passed? attribute :actor do |session| ActorResource.new(session.actor).to_h if session.actor end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
masks-0.4.0 | app/resources/masks/session_resource.rb |