Class: OMCL::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/omcl/dat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auth, user, pass = nil) ⇒ Account

Returns a new instance of Account.



5
6
7
8
9
# File 'lib/omcl/dat.rb', line 5

def initialize(auth, user, pass=nil)
  @auth = auth
  @user = user
  @pass = pass
end

Instance Attribute Details

#authObject

Returns the value of attribute auth.



3
4
5
# File 'lib/omcl/dat.rb', line 3

def auth
  @auth
end

#nickObject

Returns the value of attribute nick.



3
4
5
# File 'lib/omcl/dat.rb', line 3

def nick
  @nick
end

#passObject

Returns the value of attribute pass.



3
4
5
# File 'lib/omcl/dat.rb', line 3

def pass
  @pass
end

#tokenObject

Returns the value of attribute token.



3
4
5
# File 'lib/omcl/dat.rb', line 3

def token
  @token
end

#userObject

Returns the value of attribute user.



3
4
5
# File 'lib/omcl/dat.rb', line 3

def user
  @user
end