Class: Telegram::Bot::Types::DirectMessagePriceChanged

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/direct_message_price_changed.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

#are_direct_messages_enabledBoolean (readonly)

Returns the value of attribute are_direct_messages_enabled.

Returns:

  • (Boolean)


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

def are_direct_messages_enabled
  @are_direct_messages_enabled
end

#direct_message_star_countInteger (readonly)

Returns the value of attribute direct_message_star_count.

Returns:

  • (Integer)


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

def direct_message_star_count
  @direct_message_star_count
end

Class Method Details

.new(are_direct_messages_enabled:, direct_message_star_count:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(are_direct_messages_enabled:, direct_message_star_count:) ⇒ instance

    Parameters:

    • are_direct_messages_enabled: (Boolean)
    • direct_message_star_count: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (are_direct_messages_enabled: bool, ?direct_message_star_count: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance