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:



167
168
169
170
171
172
# File 'app/models/submission/flexible_request_graph.rb', line 167

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)


174
175
176
# File 'app/models/submission/flexible_request_graph.rb', line 174

def multiplexed?
  true
end