lib/submodules/ably-ruby/lib/ably/models/message.rb in ably-rest-1.1.8 vs lib/submodules/ably-ruby/lib/ably/models/message.rb in ably-rest-1.2.0

- old
+ new

@@ -160,16 +160,16 @@ def delta_extras return nil if attributes[:extras][:delta].nil? @delta_extras ||= DeltaExtras.new(attributes[:extras][:delta]).freeze end + def protocol_message_index + protocol_message.messages.map(&:object_id).index(self.object_id) + end + private def raw_hash_object @raw_hash_object - end - - def protocol_message_index - protocol_message.messages.map(&:object_id).index(self.object_id) end def set_attributes_object(new_attributes) @attributes = IdiomaticRubyWrapper(new_attributes.clone, stop_at: [:data, :extras]) end