Class: Telegram::Bot::Types::MessageEntity
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::MessageEntity
- Defined in:
- lib/telegram/bot/types/message_entity.rb
Instance Attribute Summary collapse
-
#length ⇒ Object
Returns the value of attribute length.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ MessageEntity
constructor
A new instance of MessageEntity.
Constructor Details
#initialize(attributes) ⇒ MessageEntity
Returns a new instance of MessageEntity.
9 10 11 |
# File 'lib/telegram/bot/types/message_entity.rb', line 9 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#length ⇒ Object
Returns the value of attribute length.
3 4 5 |
# File 'lib/telegram/bot/types/message_entity.rb', line 3 def length @length end |
#offset ⇒ Object
Returns the value of attribute offset.
3 4 5 |
# File 'lib/telegram/bot/types/message_entity.rb', line 3 def offset @offset end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/telegram/bot/types/message_entity.rb', line 3 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/telegram/bot/types/message_entity.rb', line 3 def url @url end |
#user ⇒ Object
Returns the value of attribute user.
3 4 5 |
# File 'lib/telegram/bot/types/message_entity.rb', line 3 def user @user end |