class Rubotnik::User
Attributes
id[R]
session[RW]
Public Class Methods
new(id)
click to toggle source
# File lib/rubotnik/user.rb, line 5 def initialize(id) @id = id @commands = [] @session = {} end
Public Instance Methods
assign_command(command)
click to toggle source
# File lib/rubotnik/user.rb, line 15 def assign_command(command) @commands << command end
current_command()
click to toggle source
# File lib/rubotnik/user.rb, line 11 def current_command @commands.last end
reset_command()
click to toggle source
# File lib/rubotnik/user.rb, line 19 def reset_command @commands = [] end