// Value Object
export default class Action {

    public readonly kind: string;
    public readonly value: string;
    public readonly key: string;

    // tslint:disable-next-line: no-unnecessary-initializer
    constructor(kind: string, value?: string ) {
        this.kind = kind;
        this.value = value;
        this.key = kind;
        if (this.value !== undefined && this.value !== null) {
            this.key += '$'+value;
        }
    }
}
