lib/ably/models/connection_details.rb in ably-0.8.7 vs lib/ably/models/connection_details.rb in ably-0.8.8
- old
+ new
@@ -26,17 +26,18 @@
# @option attributes [String] :connection_key the connection secret key string that is used to resume a connection and its state
# @option attributes [Integer] :max_message_size maximum individual message size in bytes
# @option attributes [Integer] :max_frame_size maximum size for a single frame of data sent to Ably. This restriction applies to a {Ably::Models::ProtocolMessage} sent over a realtime connection, or the total body size for a REST request
# @option attributes [Integer] :max_inbound_rate maximum allowable number of requests per second from a client
# @option attributes [Integer] :connection_state_ttl duration in seconds that Ably will persist the connection state when a Realtime client is abruptly disconnected
+ # @option attributes [String] :server_id unique identifier of the Ably server where the connection is established
#
def initialize(attributes = {})
@hash_object = IdiomaticRubyWrapper(attributes.clone)
hash[:connection_state_ttl] = (hash[:connection_state_ttl].to_f / 1000).round if hash[:connection_state_ttl]
hash.freeze
end
- %w(client_id connection_key max_message_size max_frame_size max_inbound_rate connection_state_ttl).each do |attribute|
+ %w(client_id connection_key max_message_size max_frame_size max_inbound_rate connection_state_ttl server_id).each do |attribute|
define_method attribute do
hash[attribute.to_sym]
end
end