struct Elasticsearch::Size

Overview

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"

Defined in:

size.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(json : JSON::PullParser) #

[View source]
def self.new(bytes : Int64) #

[View source]

Instance Method Detail

def inspect(io) : Nil #

[View source]
def to_i #

[View source]
def to_i64 : Int64 #

[View source]
def to_json(json : JSON::Builder) #

[View source]