Class: Ucode::Aggregator::BlockSummary

Inherits:
Struct
  • Object
show all
Defined in:
lib/ucode/aggregator.rb

Overview

Summary of how many codepoints of one block are present in a given input set. Plain Struct — Ruby’s built-in ‘to_h` covers any serialization needs.

Instance Attribute Summary collapse

Instance Attribute Details

#completeObject

Returns the value of attribute complete

Returns:

  • (Object)

    the current value of complete



16
17
18
# File 'lib/ucode/aggregator.rb', line 16

def complete
  @complete
end

#coveredObject

Returns the value of attribute covered

Returns:

  • (Object)

    the current value of covered



16
17
18
# File 'lib/ucode/aggregator.rb', line 16

def covered
  @covered
end

#fill_ratioObject

Returns the value of attribute fill_ratio

Returns:

  • (Object)

    the current value of fill_ratio



16
17
18
# File 'lib/ucode/aggregator.rb', line 16

def fill_ratio
  @fill_ratio
end

#first_cpObject

Returns the value of attribute first_cp

Returns:

  • (Object)

    the current value of first_cp



16
17
18
# File 'lib/ucode/aggregator.rb', line 16

def first_cp
  @first_cp
end

#last_cpObject

Returns the value of attribute last_cp

Returns:

  • (Object)

    the current value of last_cp



16
17
18
# File 'lib/ucode/aggregator.rb', line 16

def last_cp
  @last_cp
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



16
17
18
# File 'lib/ucode/aggregator.rb', line 16

def name
  @name
end

#totalObject

Returns the value of attribute total

Returns:

  • (Object)

    the current value of total



16
17
18
# File 'lib/ucode/aggregator.rb', line 16

def total
  @total
end