Elasticsearch::Size
Inherits Struct < Value < Object
Represents a number of bytes, primarily used in inspecting index stats to provide byte eizes that are human-readable.
es.indices.stats("*").all.total.store.size_in_bytes.inspect # => "5.05GB"
Constructors
new(json : JSON::PullParser)
Sourcenew(bytes : Int64)
SourceInstance methods
inspect(io) : Nil
Sourceto_i
Sourceto_i64
Sourceto_json(json : JSON::Builder)
Source