Class: Telegram::Bot::Types::ChatMemberOwner

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

#custom_titleString? (readonly)

Returns the value of attribute custom_title.

Returns:

  • (String, nil)


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

def custom_title
  @custom_title
end

#is_anonymousBoolean (readonly)

Returns the value of attribute is_anonymous.

Returns:

  • (Boolean)


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

def is_anonymous
  @is_anonymous
end

#statusString (readonly)

Returns the value of attribute status.

Returns:

  • (String)


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

def status
  @status
end

#userUser (readonly)

Returns the value of attribute user.

Returns:



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

def user
  @user
end

Class Method Details

.new(status:, user:, is_anonymous:, custom_title:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(status:, user:, is_anonymous:, custom_title:) ⇒ instance

    Parameters:

    • status: (String)
    • user: (User)
    • is_anonymous: (Boolean)
    • custom_title: (String)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (?status: String, user: User, is_anonymous: bool, ?custom_title: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance