Class: AuctionFunCore::Entities::Staff
- Inherits:
-
ROM::Struct
- Object
- ROM::Struct
- AuctionFunCore::Entities::Staff
- Defined in:
- lib/auction_fun_core/entities/staff.rb
Overview
Staff Relations class. This return simple objects with attribute readers to represent data in your staff.
Instance Method Summary collapse
Instance Method Details
#active? ⇒ Boolean
8 9 10 |
# File 'lib/auction_fun_core/entities/staff.rb', line 8 def active? active end |
#inactive? ⇒ Boolean
12 13 14 |
# File 'lib/auction_fun_core/entities/staff.rb', line 12 def inactive? !active end |
#info ⇒ Object
16 17 18 |
# File 'lib/auction_fun_core/entities/staff.rb', line 16 def info attributes.except(:password_digest) end |