Class: Telegram::Bot::Types::ChatMember
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::ChatMember
- Defined in:
- lib/telegram/bot/types/chat_member.rb
Instance Attribute Summary collapse
-
#can_add_web_page_previews ⇒ Object
Returns the value of attribute can_add_web_page_previews.
-
#can_be_edited ⇒ Object
Returns the value of attribute can_be_edited.
-
#can_change_info ⇒ Object
Returns the value of attribute can_change_info.
-
#can_delete_messages ⇒ Object
Returns the value of attribute can_delete_messages.
-
#can_edit_messages ⇒ Object
Returns the value of attribute can_edit_messages.
-
#can_invite_users ⇒ Object
Returns the value of attribute can_invite_users.
-
#can_pin_messages ⇒ Object
Returns the value of attribute can_pin_messages.
-
#can_post_messages ⇒ Object
Returns the value of attribute can_post_messages.
-
#can_promote_members ⇒ Object
Returns the value of attribute can_promote_members.
-
#can_restrict_members ⇒ Object
Returns the value of attribute can_restrict_members.
-
#can_send_media_messages ⇒ Object
Returns the value of attribute can_send_media_messages.
-
#can_send_messages ⇒ Object
Returns the value of attribute can_send_messages.
-
#can_send_other_messages ⇒ Object
Returns the value of attribute can_send_other_messages.
-
#status ⇒ Object
Returns the value of attribute status.
-
#until_date ⇒ Object
Returns the value of attribute until_date.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ ChatMember
constructor
A new instance of ChatMember.
Constructor Details
#initialize(attributes) ⇒ ChatMember
Returns a new instance of ChatMember.
20 21 22 |
# File 'lib/telegram/bot/types/chat_member.rb', line 20 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#can_add_web_page_previews ⇒ Object
Returns the value of attribute can_add_web_page_previews.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def can_add_web_page_previews @can_add_web_page_previews end |
#can_be_edited ⇒ Object
Returns the value of attribute can_be_edited.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def can_be_edited @can_be_edited end |
#can_change_info ⇒ Object
Returns the value of attribute can_change_info.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def can_change_info @can_change_info end |
#can_delete_messages ⇒ Object
Returns the value of attribute can_delete_messages.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def @can_delete_messages end |
#can_edit_messages ⇒ Object
Returns the value of attribute can_edit_messages.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def @can_edit_messages end |
#can_invite_users ⇒ Object
Returns the value of attribute can_invite_users.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def can_invite_users @can_invite_users end |
#can_pin_messages ⇒ Object
Returns the value of attribute can_pin_messages.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def @can_pin_messages end |
#can_post_messages ⇒ Object
Returns the value of attribute can_post_messages.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def @can_post_messages end |
#can_promote_members ⇒ Object
Returns the value of attribute can_promote_members.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def can_promote_members @can_promote_members end |
#can_restrict_members ⇒ Object
Returns the value of attribute can_restrict_members.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def can_restrict_members @can_restrict_members end |
#can_send_media_messages ⇒ Object
Returns the value of attribute can_send_media_messages.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def @can_send_media_messages end |
#can_send_messages ⇒ Object
Returns the value of attribute can_send_messages.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def @can_send_messages end |
#can_send_other_messages ⇒ Object
Returns the value of attribute can_send_other_messages.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def @can_send_other_messages end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def status @status end |
#until_date ⇒ Object
Returns the value of attribute until_date.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def until_date @until_date end |
#user ⇒ Object
Returns the value of attribute user.
3 4 5 |
# File 'lib/telegram/bot/types/chat_member.rb', line 3 def user @user end |