Class: Fylla::ParsedCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/fylla/parsed_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ancestor_name, description, name, options) ⇒ ParsedCommand

Returns a new instance of ParsedCommand.



5
6
7
8
9
10
# File 'lib/fylla/parsed_command.rb', line 5

def initialize(ancestor_name, description, name, options)
  @ancestor_name = ancestor_name
  @description = description
  @name = name
  @options = options
end

Instance Attribute Details

#ancestor_nameObject

Returns the value of attribute ancestor_name.



3
4
5
# File 'lib/fylla/parsed_command.rb', line 3

def ancestor_name
  @ancestor_name
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/fylla/parsed_command.rb', line 3

def description
  @description
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/fylla/parsed_command.rb', line 3

def name
  @name
end

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/fylla/parsed_command.rb', line 3

def options
  @options
end