Class: Wampproto::Acceptor::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/wampproto/acceptor/response.rb

Overview

Request object sent for authentication

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authid, authrole, secret = nil) ⇒ Response

Returns a new instance of Response.



9
10
11
12
13
# File 'lib/wampproto/acceptor/response.rb', line 9

def initialize(authid, authrole, secret = nil)
  @authid   = authid
  @authrole = authrole
  @secret   = secret
end

Instance Attribute Details

#authidObject (readonly)

Returns the value of attribute authid.



7
8
9
# File 'lib/wampproto/acceptor/response.rb', line 7

def authid
  @authid
end

#authroleObject (readonly)

Returns the value of attribute authrole.



7
8
9
# File 'lib/wampproto/acceptor/response.rb', line 7

def authrole
  @authrole
end

#secretObject (readonly) Also known as: ticket, public_key

Returns the value of attribute secret.



7
8
9
# File 'lib/wampproto/acceptor/response.rb', line 7

def secret
  @secret
end