Class: ApolloDeploySignalSdk::SSEEvent
- Inherits:
-
Object
- Object
- ApolloDeploySignalSdk::SSEEvent
- Defined in:
- lib/apollo_deploy_signal_sdk/transport.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#retry_milliseconds ⇒ Object
readonly
Returns the value of attribute retry_milliseconds.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, data:, id: nil, retry_milliseconds: nil) ⇒ SSEEvent
constructor
A new instance of SSEEvent.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
12 13 14 |
# File 'lib/apollo_deploy_signal_sdk/transport.rb', line 12 def data @data end |
#id ⇒ Object (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_milliseconds ⇒ Object (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 |
#type ⇒ Object (readonly)
Returns the value of attribute type.
12 13 14 |
# File 'lib/apollo_deploy_signal_sdk/transport.rb', line 12 def type @type end |