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

Returns a new instance of Command.



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

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

Instance Method Details

#description(description) ⇒ Object



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

def description(description)
  @description = description
end

#example(example) ⇒ Object



23
24
25
# File 'lib/ruboty/models/command.rb', line 23

def example(example)
  @example = example
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