Module: EventSource::Controls::EventData::Hash

Defined in:
lib/event_source/controls/event_data/hash.rb

Defined Under Namespace

Modules: JSON

Class Method Summary collapse

Class Method Details

.dataObject



5
6
7
8
9
# File 'lib/event_source/controls/event_data/hash.rb', line 5

def self.data
  {
    some_attribute: 'some value'
  }
end

.exampleObject



11
12
13
# File 'lib/event_source/controls/event_data/hash.rb', line 11

def self.example
  EventSource::EventData::Hash[data]
end