Class: Ucp::Util::AuthRequest
- Inherits:
-
Object
- Object
- Ucp::Util::AuthRequest
- Defined in:
- lib/ucp/util/auth_request.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#source_ip ⇒ Object
readonly
Returns the value of attribute source_ip.
-
#source_port ⇒ Object
readonly
Returns the value of attribute source_port.
Instance Method Summary collapse
-
#initialize(account, password, source_ip = nil, source_port = nil) ⇒ AuthRequest
constructor
A new instance of AuthRequest.
Constructor Details
#initialize(account, password, source_ip = nil, source_port = nil) ⇒ AuthRequest
Returns a new instance of AuthRequest.
25 26 27 28 29 30 |
# File 'lib/ucp/util/auth_request.rb', line 25 def initialize(account,password,source_ip=nil,source_port=nil) @source_ip=source_ip @source_port=source_port @account=account @password=password end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
23 24 25 |
# File 'lib/ucp/util/auth_request.rb', line 23 def account @account end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
23 24 25 |
# File 'lib/ucp/util/auth_request.rb', line 23 def password @password end |
#source_ip ⇒ Object (readonly)
Returns the value of attribute source_ip.
23 24 25 |
# File 'lib/ucp/util/auth_request.rb', line 23 def source_ip @source_ip end |
#source_port ⇒ Object (readonly)
Returns the value of attribute source_port.
23 24 25 |
# File 'lib/ucp/util/auth_request.rb', line 23 def source_port @source_port end |