Method: KStor::Message::Base#initialize

Defined in:
lib/kstor/message/base.rb

#initialize(args, auth = {}) ⇒ KStor::Message::Base

Create new message.

Parameters:

  • message arguments

  • (defaults to: {})

    authentication data



15
16
17
18
# File 'lib/kstor/message/base.rb', line 15

def initialize(args, auth = {})
  @args = check_args!(args)
  @auth = check_auth!(auth.compact)
end