lib/submodules/ably-ruby/lib/ably/models/protocol_message.rb in ably-rest-0.7.5 vs lib/submodules/ably-ruby/lib/ably/models/protocol_message.rb in ably-rest-0.8.1
- old
+ new
@@ -29,11 +29,11 @@
# @!attribute [r] messages
# @return [Message] A {ProtocolMessage} with a `:message` action contains one or more messages belonging to a channel
# @!attribute [r] presence
# @return [PresenceMessage] A {ProtocolMessage} with a `:presence` action contains one or more presence updates belonging to a channel
# @!attribute [r] flags
- # @return [Integer] Flags inidicating special ProtocolMessage states
+ # @return [Integer] Flags indicating special ProtocolMessage states
# @!attribute [r] hash
# @return [Hash] Access the protocol message Hash object ruby'fied to use symbolized keys
#
class ProtocolMessage
include Ably::Modules::ModelCommon
@@ -168,10 +168,9 @@
Array(hash[:presence]).map do |message|
Ably::Models.PresenceMessage(message, protocol_message: self)
end
end
- # Flags as bits
def flags
Integer(hash[:flags])
rescue TypeError
0
end