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

format[R]

The delta compression format. Only vcdiff is supported.

@return [String, nil]

from[R]

The ID of the message the delta was generated from.

@return [String, nil]

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/submodules/ably-ruby/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

to_json(*args) click to toggle source
# File lib/submodules/ably-ruby/lib/ably/models/delta_extras.rb, line 24
def to_json(*args)
  as_json(args).to_json
end