Class: FlexBullet::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/flex_bullet/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sender, email, command, arguments = []) ⇒ Command

Returns a new instance of Command.



6
7
8
9
10
11
# File 'lib/flex_bullet/command.rb', line 6

def initialize (sender, email, command, arguments = [])
  @sender = sender
  @email = email
  @command = command
  @arguments = arguments
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



4
5
6
# File 'lib/flex_bullet/command.rb', line 4

def arguments
  @arguments
end

#commandObject (readonly)

Returns the value of attribute command.



4
5
6
# File 'lib/flex_bullet/command.rb', line 4

def command
  @command
end

#emailObject (readonly)

Returns the value of attribute email.



4
5
6
# File 'lib/flex_bullet/command.rb', line 4

def email
  @email
end

#senderObject (readonly)

Returns the value of attribute sender.



4
5
6
# File 'lib/flex_bullet/command.rb', line 4

def sender
  @sender
end

Instance Method Details

#executeObject



13
14
15
# File 'lib/flex_bullet/command.rb', line 13

def execute

end