class Ably::Models::DeltaExtras
Contains any arbitrary key-value pairs, which may also contain other primitive JSON types, JSON-encodable objects, or JSON-encodable arrays from delta compression.
Attributes
The delta compression format. Only vcdiff is supported.
@return [String, nil]
The ID of the message the delta was generated from.
@return [String, nil]
Public Class Methods
Source
# File lib/ably/models/delta_extras.rb, line 20 def initialize(attributes = {}) @from, @format = IdiomaticRubyWrapper((attributes || {}), stop_at: [:from, :format]).attributes.values_at(:from, :format) end
Public Instance Methods
Source
# File lib/ably/models/delta_extras.rb, line 24 def to_json(*args) as_json(args).to_json end