Class: Ace::B36ts::CLI::Commands::Encode

Inherits:
Support::Cli::Command
  • Object
show all
Includes:
Support::Cli::Base
Defined in:
lib/ace/b36ts/cli/commands/encode.rb

Overview

Encode a timestamp to a 6-character compact ID

Instance Method Summary collapse

Instance Method Details

#call(timestamp: nil, **options) ⇒ Object



42
43
44
45
46
47
# File 'lib/ace/b36ts/cli/commands/encode.rb', line 42

def call(timestamp: nil, **options)
  # Convert numeric options from strings to integers
  coerce_types(options, year_zero: :integer, count: :integer)

  Ace::B36ts::Commands::EncodeCommand.execute(timestamp, options)
end