Class: Auth::Workflow::Entity

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

Instance Method Summary collapse

Instance Method Details

#arrives_at_location_categoriesObject

the location categories of the location to which this entity is going to arrive.



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

field :arrives_at_location_categories, type: Array

#arrives_at_location_idObject

a location id to which this entity is going.



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

field :arrives_at_location_id, type: String

#departs_from_location_idObject

a location id from which this entity is going to depart.



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

field :departs_from_location_id, type: String

#get_typeObject



28
29
30
31
# File 'app/models/auth/workflow/entity.rb', line 28

def get_type
	return "default" unless arrives_at_location_id
	return departs_from_location_id.to_s + "_" + arrives_at_location_id.to_s
end

#location_categories_for_departs_fromObject

the location categories of the location from which this entity is departing.



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

field :location_categories_for_departs_from, type: Array