Class: FakeGateway
- Inherits:
-
Object
- Object
- FakeGateway
- Defined in:
- lib/atig/command/command_helper.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#filtered ⇒ Object
readonly
Returns the value of attribute filtered.
-
#names ⇒ Object
readonly
Returns the value of attribute names.
-
#notified ⇒ Object
readonly
Returns the value of attribute notified.
-
#updated ⇒ Object
readonly
Returns the value of attribute updated.
Instance Method Summary collapse
- #[](name) ⇒ Object
- #ctcp_action(*names, &action) ⇒ Object
-
#initialize(channel) ⇒ FakeGateway
constructor
A new instance of FakeGateway.
- #output_message(m) ⇒ Object
- #server_name ⇒ Object
- #update_status(*args) ⇒ Object
Constructor Details
#initialize(channel) ⇒ FakeGateway
Returns a new instance of FakeGateway.
6 7 8 |
# File 'lib/atig/command/command_helper.rb', line 6 def initialize(channel) @channel = channel end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
4 5 6 |
# File 'lib/atig/command/command_helper.rb', line 4 def action @action end |
#filtered ⇒ Object (readonly)
Returns the value of attribute filtered.
4 5 6 |
# File 'lib/atig/command/command_helper.rb', line 4 def filtered @filtered end |
#names ⇒ Object (readonly)
Returns the value of attribute names.
4 5 6 |
# File 'lib/atig/command/command_helper.rb', line 4 def names @names end |
#notified ⇒ Object (readonly)
Returns the value of attribute notified.
4 5 6 |
# File 'lib/atig/command/command_helper.rb', line 4 def notified @notified end |
#updated ⇒ Object (readonly)
Returns the value of attribute updated.
4 5 6 |
# File 'lib/atig/command/command_helper.rb', line 4 def updated @updated end |
Instance Method Details
#[](name) ⇒ Object
19 20 21 22 |
# File 'lib/atig/command/command_helper.rb', line 19 def [](name) @notified = name @channel end |
#ctcp_action(*names, &action) ⇒ Object
10 11 12 13 |
# File 'lib/atig/command/command_helper.rb', line 10 def ctcp_action(*names, &action) @names = names @action = action end |
#output_message(m) ⇒ Object
15 |
# File 'lib/atig/command/command_helper.rb', line 15 def (m); @filtered = m end |
#server_name ⇒ Object
24 |
# File 'lib/atig/command/command_helper.rb', line 24 def server_name; "server-name" end |
#update_status(*args) ⇒ Object
17 |
# File 'lib/atig/command/command_helper.rb', line 17 def update_status(*args); @updated = args end |