Class: Submission::FlexibleRequestGraph::MultiplexedLink

Inherits:
Object
  • Object
show all
Includes:
ChainLink
Defined in:
app/models/submission/flexible_request_graph.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Methods included from ChainLink

#build!, build!, included, #target_assets

Constructor Details

#initialize(request_type, multiplier, assets, chain) ⇒ MultiplexedLink

Returns a new instance of MultiplexedLink.

Raises:


156
157
158
159
160
161
# File 'app/models/submission/flexible_request_graph.rb', line 156

def initialize(request_type, multiplier, assets, chain)
  raise RequestChainError unless request_type.for_multiplexing?
  raise RequestChainError, 'Cannot multiply multiplexed requests' if multiplier > 1

  super
end

Instance Method Details

#multiplexed?Boolean

Returns:

  • (Boolean)

163
# File 'app/models/submission/flexible_request_graph.rb', line 163

def multiplexed?; true; end