Class: ApolloDeploySignalSdk::SSEEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/apollo_deploy_signal_sdk/transport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, data:, id: nil, retry_milliseconds: nil) ⇒ SSEEvent

Returns a new instance of SSEEvent.



14
15
16
17
18
19
# File 'lib/apollo_deploy_signal_sdk/transport.rb', line 14

def initialize(type:, data:, id: nil, retry_milliseconds: nil)
  @type = type
  @data = data
  @id = id
  @retry_milliseconds = retry_milliseconds
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



12
13
14
# File 'lib/apollo_deploy_signal_sdk/transport.rb', line 12

def data
  @data
end

#idObject (readonly)

Returns the value of attribute id.



12
13
14
# File 'lib/apollo_deploy_signal_sdk/transport.rb', line 12

def id
  @id
end

#retry_millisecondsObject (readonly)

Returns the value of attribute retry_milliseconds.



12
13
14
# File 'lib/apollo_deploy_signal_sdk/transport.rb', line 12

def retry_milliseconds
  @retry_milliseconds
end

#typeObject (readonly)

Returns the value of attribute type.



12
13
14
# File 'lib/apollo_deploy_signal_sdk/transport.rb', line 12

def type
  @type
end