Method: TelegramBot::ChatBoost#hash

Defined in:
lib/telegram-bot/models/chat_boost.rb

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



156
157
158
# File 'lib/telegram-bot/models/chat_boost.rb', line 156

def hash
  [boost_id, add_date, expiration_date, source].hash
end