Class: TD::Types::StatisticalValue

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/statistical_value.rb

Overview

A value with information about its recent changes.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#growth_rate_percentageFloat

The growth rate of the value, as a percentage.

Returns:

  • (Float)

    the current value of growth_rate_percentage



7
8
9
# File 'lib/tdlib/types/statistical_value.rb', line 7

def growth_rate_percentage
  @growth_rate_percentage
end

#previous_valueFloat

The value for the previous day.

Returns:

  • (Float)

    the current value of previous_value



7
8
9
# File 'lib/tdlib/types/statistical_value.rb', line 7

def previous_value
  @previous_value
end

#valueFloat

The current value.

Returns:

  • (Float)

    the current value of value



7
8
9
# File 'lib/tdlib/types/statistical_value.rb', line 7

def value
  @value
end