Class: LinkedRails::Auth::GuestUser
- Inherits:
-
Object
- Object
- LinkedRails::Auth::GuestUser
- Includes:
- ActiveModel::Model, Model
- Defined in:
- app/models/linked_rails/auth/guest_user.rb
Instance Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
16 17 18 |
# File 'app/models/linked_rails/auth/guest_user.rb', line 16 def id @id ||= SecureRandom.hex end |
Class Method Details
.iri ⇒ Object
24 25 26 |
# File 'app/models/linked_rails/auth/guest_user.rb', line 24 def self.iri Vocab.ontola[:GuestUser] end |
Instance Method Details
#email ⇒ Object
10 |
# File 'app/models/linked_rails/auth/guest_user.rb', line 10 def email; end |
#guest? ⇒ Boolean
12 13 14 |
# File 'app/models/linked_rails/auth/guest_user.rb', line 12 def guest? true end |
#iri_opts ⇒ Object
20 21 22 |
# File 'app/models/linked_rails/auth/guest_user.rb', line 20 def iri_opts {id: id} end |