Class: Ruboty::Models::Command

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

Overview

Command

Instance Method Summary collapse

Constructor Details

#initializeCommand



7
8
9
# File 'lib/ruboty/models/command.rb', line 7

def initialize
  @name, @pattern, @description = ''
end

Instance Method Details

#description(description) ⇒ Object



19
20
21
# File 'lib/ruboty/models/command.rb', line 19

def description(description)
  @description = description
end

#name(name) ⇒ Object



11
12
13
# File 'lib/ruboty/models/command.rb', line 11

def name(name)
  @name = name
end

#pattern(pattern) ⇒ Object



15
16
17
# File 'lib/ruboty/models/command.rb', line 15

def pattern(pattern)
  @pattern = pattern
end