module EventStore::HTTP::Controls::JSON

Public Class Methods

data() click to toggle source
# File lib/event_store/http/controls/json.rb, line 5
def self.data
  {
    :some_attr1 => 'value1',
    :some_attr2 => {
      :some_attr3 => 'value2'
    }
  }
end
text() click to toggle source
# File lib/event_store/http/controls/json.rb, line 14
        def self.text
          <<~JSON.chomp
          {
            "someAttr1": "value1",
            "someAttr2": {
              "someAttr3": "value2"
            }
          }
          JSON
        end