Class: Ace::B36ts::CLI::Commands::Encode
- Inherits:
-
Support::Cli::Command
- Object
- Support::Cli::Command
- Ace::B36ts::CLI::Commands::Encode
- 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, **) # Convert numeric options from strings to integers coerce_types(, year_zero: :integer, count: :integer) Ace::B36ts::Commands::EncodeCommand.execute(, ) end |