Class: Submission::FlexibleRequestGraph::MultiplexedLink

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

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:


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

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


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

def multiplexed?; true; end