Class: Hecks::Bluebook::DomainPort
- Inherits:
-
Object
- Object
- Hecks::Bluebook::DomainPort
- Includes:
- Behaviour::DomainPort, IR
- Defined in:
- lib/hecks/bluebook/domain_port.rb
Overview
A named group of operations an aggregate (or, later, a chapter)
exposes to whatever adapter calls in — the contract that today lives
only as a bare verb/signal pair in a standalone .port file.
Superseding those is the goal ; for now they keep working untouched,
and this is additive.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
Instance Method Summary collapse
-
#initialize(name:, operations: []) ⇒ DomainPort
constructor
A new instance of DomainPort.
Methods included from Behaviour::DomainPort
Methods included from IR
Constructor Details
#initialize(name:, operations: []) ⇒ DomainPort
Returns a new instance of DomainPort.
96 97 98 99 |
# File 'lib/hecks/bluebook/domain_port.rb', line 96 def initialize(name:, operations: []) @name = name.to_s @operations = operations end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
94 95 96 |
# File 'lib/hecks/bluebook/domain_port.rb', line 94 def name @name end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
94 95 96 |
# File 'lib/hecks/bluebook/domain_port.rb', line 94 def operations @operations end |