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

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

#referencesObject

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