Class: Auth::Workflow::Tlocation

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document
Defined in:
app/models/auth/workflow/tlocation.rb

Instance Method Summary collapse

Instance Method Details

#bookedObject

whether the slot is booked or free, for assignment.



30
# File 'app/models/auth/workflow/tlocation.rb', line 30

field :booked, type: Boolean, default: true

#deletableObject

whether the slot is deletable, if true, then it will be deleted by a background job after ā€˜nā€™ days.



27
# File 'app/models/auth/workflow/tlocation.rb', line 27

field :deletable, type: Boolean, default: false

#durationObject

the difference between the start time and the end time.



24
# File 'app/models/auth/workflow/tlocation.rb', line 24

field :duration, type: Integer

#end_timeObject

the seconds since epoch, after which this entity may not be present at this location.



21
# File 'app/models/auth/workflow/tlocation.rb', line 21

field :end_time, type: Integer

#entity_categoryObject

the category of the entity.



15
# File 'app/models/auth/workflow/tlocation.rb', line 15

field :entity_category, type: String

#entity_idObject

the entity id.



12
# File 'app/models/auth/workflow/tlocation.rb', line 12

field :entity_id, type: String

#start_timeObject

the seconds since epoch, after which the entity will be present at the location.



18
# File 'app/models/auth/workflow/tlocation.rb', line 18

field :start_time, type: Integer