Class: AuctionFunCore::Entities::Staff

Inherits:
ROM::Struct
  • Object
show all
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

Returns:

  • (Boolean)


8
9
10
# File 'lib/auction_fun_core/entities/staff.rb', line 8

def active?
  active
end

#inactive?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/auction_fun_core/entities/staff.rb', line 12

def inactive?
  !active
end

#infoObject



16
17
18
# File 'lib/auction_fun_core/entities/staff.rb', line 16

def info
  attributes.except(:password_digest)
end