Sha256: 90477fef8880c05dc2fd2b02019bd06c330ddbd31ebda6ea3bb5f83d44109f51
Contents?: true
Size: 746 Bytes
Versions: 8
Compression:
Stored size: 746 Bytes
Contents
module Ably::Models # Contains any arbitrary key-value pairs, which may also contain other primitive JSON types, JSON-encodable objects, # or JSON-encodable arrays from delta compression. # class DeltaExtras include Ably::Modules::ModelCommon # The ID of the message the delta was generated from. # # @return [String, nil] # attr_reader :from # The delta compression format. Only vcdiff is supported. # # @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