Class: Submission::FlexibleRequestGraph::MultiplexedLink
- Inherits:
-
Object
- Object
- Submission::FlexibleRequestGraph::MultiplexedLink
- Includes:
- ChainLink
- Defined in:
- app/models/submission/flexible_request_graph.rb
Instance Method Summary collapse
-
#initialize(request_type, multiplier, assets, chain) ⇒ MultiplexedLink
constructor
A new instance of MultiplexedLink.
- #multiplexed? ⇒ Boolean
Methods included from ChainLink
build!, #build!, included, #target_assets
Constructor Details
#initialize(request_type, multiplier, assets, chain) ⇒ MultiplexedLink
Returns a new instance of MultiplexedLink.
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
174 175 176 |
# File 'app/models/submission/flexible_request_graph.rb', line 174 def multiplexed? true end |