Module: Hecks::Bluebook::Behaviour::PortOperation
- Includes:
- Indexed
- Included in:
- PortOperation
- Defined in:
- lib/hecks/bluebook/behaviour/domain_port.rb
Overview
WHAT ONE PORT OPERATION DOES.
Instance Method Summary collapse
- #identity_attribute(owner_name) ⇒ Object
-
#references ⇒ Object
An operation declares no reference of its own — the OWNER is what it acts for, and
identity_attributeis how that is found.
Methods included from Indexed
#attribute, #command, #index_attributes, #index_by_hecks_name, #query
Instance Method Details
#identity_attribute(owner_name) ⇒ Object
14 15 16 |
# File 'lib/hecks/bluebook/behaviour/domain_port.rb', line 14 def identity_attribute(owner_name) @attributes.find { |attribute| attribute.reference? && attribute.type.target_name == owner_name.to_s } end |
#references ⇒ Object
An operation declares no reference of its own — the OWNER is
what it acts for, and identity_attribute is how that is found.
12 |
# File 'lib/hecks/bluebook/behaviour/domain_port.rb', line 12 def references = nil |