Class: FlexBullet::Command
- Inherits:
-
Object
- Object
- FlexBullet::Command
- Defined in:
- lib/flex_bullet/command.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#sender ⇒ Object
readonly
Returns the value of attribute sender.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(sender, email, command, arguments = []) ⇒ Command
constructor
A new instance of Command.
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
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
4 5 6 |
# File 'lib/flex_bullet/command.rb', line 4 def arguments @arguments end |
#command ⇒ Object (readonly)
Returns the value of attribute command.
4 5 6 |
# File 'lib/flex_bullet/command.rb', line 4 def command @command end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
4 5 6 |
# File 'lib/flex_bullet/command.rb', line 4 def email @email end |
#sender ⇒ Object (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
#execute ⇒ Object
13 14 15 |
# File 'lib/flex_bullet/command.rb', line 13 def execute end |