Class: NotionRb::Operations::Commands::Factory

Inherits:
Object
  • Object
show all
Defined in:
lib/notion_rb/operations/commands/factory.rb

Class Method Summary collapse

Class Method Details

.build(command_name, id, opts = {}) ⇒ Object



20
21
22
23
24
25
# File 'lib/notion_rb/operations/commands/factory.rb', line 20

def self.build(command_name, id, opts = {})
  COMMANDS.fetch(command_name).new(
    id,
    opts
  )
end