class NotionRb::Operations::Commands::Factory

Public Class Methods

build(command_name, id, opts = {}) click to toggle source
# 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