module

Memo::CLI::Input

Instance methods

bool(data : Hash(String, JSON::Any), key : String, default : Bool = false) : Bool
Source
external_id(data : Hash(String, JSON::Any), key : String) : Memo::ExternalId | Nil

Parse external ID (Int64 or String)

Accepts either an integer or string value and returns the appropriate type. Used for source_id, pair_id, parent_id which support both types.

Source
external_id!(data : Hash(String, JSON::Any), key : String) : Memo::ExternalId

Parse required external ID (Int64 or String)

Source
float(data : Hash(String, JSON::Any), key : String) : Float64 | Nil
Source
int(data : Hash(String, JSON::Any), key : String) : Int32 | Nil
Source
int64(data : Hash(String, JSON::Any), key : String) : Int64 | Nil
Source
string(data : Hash(String, JSON::Any), key : String) : String | Nil
Source