Class: ShopifyCLI::Theme::DevServer::SSE::Event

Inherits:
Struct
  • Object
show all
Defined in:
lib/shopify_cli/theme/dev_server/sse.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



10
11
12
# File 'lib/shopify_cli/theme/dev_server/sse.rb', line 10

def data
  @data
end

Instance Method Details

#to_sObject



11
12
13
14
# File 'lib/shopify_cli/theme/dev_server/sse.rb', line 11

def to_s
  "data: #{data}\n" \
  "\n\n"
end