Module: EventStore::HTTP::Controls::JSON
- Defined in:
- lib/event_store/http/controls/json.rb
Class Method Summary collapse
Class Method Details
.data ⇒ Object
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 |
.text ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/event_store/http/controls/json.rb', line 14 def self.text " {\n \"someAttr1\": \"value1\",\n \"someAttr2\": {\n \"someAttr3\": \"value2\"\n }\n }\n JSON\nend\n".chomp |