Class: Sipity::Entity
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Sipity::Entity
- Defined in:
- app/models/sipity/entity.rb
Overview
A proxy for the entity that is being processed. By using a proxy, we need not worry about polluting the proxy’s concerns with things related to processing.
The goal is to keep this behavior separate, so that we can possibly extract the information.
Instance Method Summary collapse
Instance Method Details
#proxy_for ⇒ Object
28 29 30 |
# File 'app/models/sipity/entity.rb', line 28 def proxy_for @proxy_for ||= GlobalID::Locator.locate(proxy_for_global_id) end |
#workflow_state_name ⇒ Object
21 22 23 |
# File 'app/models/sipity/entity.rb', line 21 def workflow_state_name workflow_state.name if workflow_state end |