Sha256: bec6697253650a5c2590de98adf9e275dd352de24cab6327d0a5104b0183cba7

Contents?: true

Size: 742 Bytes

Versions: 8

Compression:

Stored size: 742 Bytes

Contents

module Ably::Models
  #
  # @!attribute [r] from
  #   @return [String] The id of the message the delta was generated from
  # @!attribute [r] format
  #   @return [String] The delta format. Only vcdiff is supported as at API version 1.2
  #
  class DeltaExtras
    include Ably::Modules::ModelCommon

    # The id of the message the delta was generated from.
    # @return [String, nil]
    #
    attr_reader :from

    # The delta format.
    # @return [String, nil]
    #
    attr_reader :format

    def initialize(attributes = {})
      @from, @format = IdiomaticRubyWrapper((attributes || {}), stop_at: [:from, :format]).attributes.values_at(:from, :format)
    end

    def to_json(*args)
      as_json(args).to_json
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ably-rest-1.2.2 lib/submodules/ably-ruby/lib/ably/models/delta_extras.rb
ably-1.2.2 lib/ably/models/delta_extras.rb
ably-rest-1.2.1 lib/submodules/ably-ruby/lib/ably/models/delta_extras.rb
ably-1.2.1 lib/ably/models/delta_extras.rb
ably-rest-1.2.0 lib/submodules/ably-ruby/lib/ably/models/delta_extras.rb
ably-1.2.0 lib/ably/models/delta_extras.rb
ably-rest-1.1.8 lib/submodules/ably-ruby/lib/ably/models/delta_extras.rb
ably-1.1.8 lib/ably/models/delta_extras.rb