lib/ably/modules/encodeable.rb in ably-1.0.7 vs lib/ably/modules/encodeable.rb in ably-1.1.0
- old
+ new
@@ -25,10 +25,10 @@
message.decode(encoders, channel_options, &error_block)
end
end
# Return an Array of Message or Presence objects from the encoded Array of JSON-like objects, using the optional channel options
- # @param message_objects [Array<Hash>] Array of JSON-like objects with encoded messages
+ # @param message_object_array [Array<Hash>] Array of JSON-like objects with encoded messages
# @param channel_options [Hash] Channel options, currently reserved for Encryption options
# @return [Array<Message,Presence>]
def from_encoded_array(message_object_array, channel_options = {})
Array(message_object_array).map do |message_object|
from_encoded(message_object, channel_options)