Class: DSP::ProgressEndEvent

Inherits:
DSPBase
  • Object
show all
Defined in:
lib/dsp/dsp_protocol.rb

Overview

interface ProgressEndEvent extends Event {

    body: {
        /** The ID that was introduced in the initial 'ProgressStartEvent'. */
        progressId: string;
        /** Optional, more detailed progress message. If omitted, the previous message (if any) is used. */
        message?: string;
    };
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from DSP::DSPBase

Instance Attribute Details

#bodyObject

type: {



733
734
735
# File 'lib/dsp/dsp_protocol.rb', line 733

def body
  @body
end

#eventObject

/** The ID that was introduced in the initial ‘ProgressStartEvent’. */

    progressId: string;
    /** Optional, more detailed progress message. If omitted, the previous message (if any) is used. */
    message?: string;
}


739
740
741
# File 'lib/dsp/dsp_protocol.rb', line 739

def event
  @event
end

#seqObject

type: {



733
734
735
# File 'lib/dsp/dsp_protocol.rb', line 733

def seq
  @seq
end

#typeObject

type: {



733
734
735
# File 'lib/dsp/dsp_protocol.rb', line 733

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



741
742
743
744
745
746
747
748
# File 'lib/dsp/dsp_protocol.rb', line 741

def from_h!(value)
  value = {} if value.nil?
  self.body = value['body'] # Unknown type
  self.event = value['event']
  self.seq = value['seq']
  self.type = value['type']
  self
end