Class: FakeGateway

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action.



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

def action
  @action
end

#filteredObject (readonly)

Returns the value of attribute filtered.



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

def filtered
  @filtered
end

#namesObject (readonly)

Returns the value of attribute names.



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

def names
  @names
end

#notifiedObject (readonly)

Returns the value of attribute notified.



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

def notified
  @notified
end

#updatedObject (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 output_message(m); @filtered = m end

#server_nameObject



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