Class: Fiveruns::Dash::Payload
Instance Method Summary
collapse
Constructor Details
#initialize(data) ⇒ Payload
Returns a new instance of Payload.
120
121
122
123
|
# File 'lib/fiveruns/dash/update.rb', line 120
def initialize(data)
@version = Fiveruns::Dash::Version::STRING
@data = data
end
|
Instance Method Details
125
126
127
128
129
130
|
# File 'lib/fiveruns/dash/update.rb', line 125
def io
io = StringIO.new
io.write compressed
io.rewind
io
end
|
132
133
134
|
# File 'lib/fiveruns/dash/update.rb', line 132
def params
{}
end
|
136
137
138
|
# File 'lib/fiveruns/dash/update.rb', line 136
def to_fjson
@data.to_fjson
end
|