Class: Ace::B36ts::CLI::Commands::Decode

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

Overview

Decode a compact ID to a timestamp

Instance Method Summary collapse

Instance Method Details

#call(compact_id:, **options) ⇒ Object



37
38
39
40
41
42
# File 'lib/ace/b36ts/cli/commands/decode.rb', line 37

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

  Ace::B36ts::Commands::DecodeCommand.execute(compact_id, options)
end