Class: Faker::Bot::Command

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/faker/bot/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Command

Returns a new instance of Command.



15
16
17
# File 'lib/faker/bot/command.rb', line 15

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



13
14
15
# File 'lib/faker/bot/command.rb', line 13

def options
  @options
end

Instance Method Details

#render(result, output) ⇒ Object



19
20
21
# File 'lib/faker/bot/command.rb', line 19

def render(result, output)
  Renderer.call(result, options, output)
end