Class: Auth::Workflow::Entity
- Inherits:
-
Object
- Object
- Auth::Workflow::Entity
- Includes:
- Mongoid::Document
- Defined in:
- app/models/auth/workflow/entity.rb
Instance Method Summary collapse
-
#arrives_at_location_categories ⇒ Object
the location categories of the location to which this entity is going to arrive.
-
#arrives_at_location_id ⇒ Object
a location id to which this entity is going.
-
#departs_from_location_id ⇒ Object
a location id from which this entity is going to depart.
- #get_type ⇒ Object
-
#location_categories_for_departs_from ⇒ Object
the location categories of the location from which this entity is departing.
Instance Method Details
#arrives_at_location_categories ⇒ Object
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_id ⇒ Object
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_id ⇒ Object
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_type ⇒ Object
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_from ⇒ Object
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 |