class JsonObjectFormat
The JSON object format used for publishing messages to Fanout.io.
Public Class Methods
new(value)
click to toggle source
Initialize with a value representing the message to be sent.
# File lib/jsonobjectformat.rb, line 14 def initialize(value) @value = value end
Public Instance Methods
export()
click to toggle source
The method used to export the format data.
# File lib/jsonobjectformat.rb, line 24 def export return @value end
name()
click to toggle source
The name of the format.
# File lib/jsonobjectformat.rb, line 19 def name return 'json-object' end