Module: EventStore::HTTP::Controls::JSON

Defined in:
lib/event_store/http/controls/json.rb

Class Method Summary collapse

Class Method Details

.dataObject



5
6
7
8
9
10
11
12
# File 'lib/event_store/http/controls/json.rb', line 5

def self.data
  {
    :some_attr1 => 'value1',
    :some_attr2 => {
      :some_attr3 => 'value2'
    }
  }
end

.textObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/event_store/http/controls/json.rb', line 14

def self.text
  <<~JSON.chomp
  {
    "someAttr1": "value1",
    "someAttr2": {
      "someAttr3": "value2"
    }
  }
  JSON
end