Class: Telegram::Bot::Types::UserRating

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/user_rating.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#current_level_ratingInteger (readonly)

Returns the value of attribute current_level_rating.

Returns:

  • (Integer)


10
11
12
# File 'sig/telegram/bot/types/user_rating.rbs', line 10

def current_level_rating
  @current_level_rating
end

#levelInteger (readonly)

Returns the value of attribute level.

Returns:

  • (Integer)


8
9
10
# File 'sig/telegram/bot/types/user_rating.rbs', line 8

def level
  @level
end

#next_level_ratingInteger? (readonly)

Returns the value of attribute next_level_rating.

Returns:

  • (Integer, nil)


11
12
13
# File 'sig/telegram/bot/types/user_rating.rbs', line 11

def next_level_rating
  @next_level_rating
end

#ratingInteger (readonly)

Returns the value of attribute rating.

Returns:

  • (Integer)


9
10
11
# File 'sig/telegram/bot/types/user_rating.rbs', line 9

def rating
  @rating
end

Class Method Details

.new(level:, rating:, current_level_rating:, next_level_rating:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(level:, rating:, current_level_rating:, next_level_rating:) ⇒ instance

    Parameters:

    • level: (Integer)
    • rating: (Integer)
    • current_level_rating: (Integer)
    • next_level_rating: (Integer)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/user_rating.rbs', line 6

def self.new: (level: Integer, rating: Integer, current_level_rating: Integer, ?next_level_rating: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance