Class: Hecks::Bluebook::DomainPort

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Behaviour::DomainPort

#operation

Methods included from IR

extended, included

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

#nameObject (readonly)

Returns the value of attribute name.



94
95
96
# File 'lib/hecks/bluebook/domain_port.rb', line 94

def name
  @name
end

#operationsObject (readonly)

Returns the value of attribute operations.



94
95
96
# File 'lib/hecks/bluebook/domain_port.rb', line 94

def operations
  @operations
end