Class: TD::Types::ChatRevenueStatistics

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

Overview

A detailed statistics about revenue earned from sponsored messages in a chat.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#revenue_amountTD::Types::ChatRevenueAmount

Amount of earned revenue.

Returns:



8
9
10
# File 'lib/tdlib/types/chat_revenue_statistics.rb', line 8

def revenue_amount
  @revenue_amount
end

#revenue_by_hour_graphTD::Types::StatisticalGraph

A graph containing amount of revenue in a given hour.

Returns:



8
9
10
# File 'lib/tdlib/types/chat_revenue_statistics.rb', line 8

def revenue_by_hour_graph
  @revenue_by_hour_graph
end

#revenue_graphTD::Types::StatisticalGraph

A graph containing amount of revenue.

Returns:



8
9
10
# File 'lib/tdlib/types/chat_revenue_statistics.rb', line 8

def revenue_graph
  @revenue_graph
end

#usd_rateFloat

Current conversion rate of the cryptocurrency in which revenue is calculated to USD.

Returns:

  • (Float)

    the current value of usd_rate



8
9
10
# File 'lib/tdlib/types/chat_revenue_statistics.rb', line 8

def usd_rate
  @usd_rate
end