Playbook Documentation Beta

Class Scenario​Store

public final class ScenarioStore 

The class for managing a set of scenarios identified by the arbitrary kind.

Initializers

init(kind:​)

public init(kind: ScenarioKind) 

Initialize a new store with given kind.

Parameters

kind Scenario​Kind

A unique identifier of the secenarios managed by this instance.

Properties

kind

public let kind: ScenarioKind

A unique identifier of the secenarios managed by this instance.

scenarios

public var scenarios: [Scenario] 

The set of scenarios managed by this store.

Methods

add(_:​)

@discardableResult
    public func add(_ scenario: Scenario) -> Self 

Adds a scenario to this store instance.

Parameters

scenario Scenario

The scenario to be added to this instance.

Returns

A instance of self.