Class: Fiveruns::Dash::Payload

Inherits:
Object
  • Object
show all
Defined in:
lib/fiveruns/dash/update.rb

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

#ioObject



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

#paramsObject



132
133
134
# File 'lib/fiveruns/dash/update.rb', line 132

def params
  {}
end

#to_fjsonObject



136
137
138
# File 'lib/fiveruns/dash/update.rb', line 136

def to_fjson
  @data.to_fjson
end