lib/amqp/client/properties.rb in amqp-client-1.1.1 vs lib/amqp/client/properties.rb in amqp-client-1.1.2
- old
+ new
@@ -4,12 +4,14 @@
module AMQP
class Client
# Encode/decode AMQP Properties
class Properties
- def initialize(content_type: nil, content_encoding: nil, headers: nil, delivery_mode: nil, priority: nil, correlation_id: nil,
- reply_to: nil, expiration: nil, message_id: nil, timestamp: nil, type: nil, user_id: nil, app_id: nil)
+ # rubocop:disable Metrics/ParameterLists
+ def initialize(content_type: nil, content_encoding: nil, headers: nil, delivery_mode: nil,
+ priority: nil, correlation_id: nil, reply_to: nil, expiration: nil,
+ message_id: nil, timestamp: nil, type: nil, user_id: nil, app_id: nil)
@content_type = content_type
@content_encoding = content_encoding
@headers = headers
@delivery_mode = delivery_mode
@priority = priority
@@ -20,9 +22,10 @@
@timestamp = timestamp
@type = type
@user_id = user_id
@app_id = app_id
end
+ # rubocop:enable Metrics/ParameterLists
# Properties as a Hash
# @return [Hash] Properties
def to_h
{