Class: Telegram::Bot::Types::MessageEntity

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot/types/message_entity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lengthObject

Returns the value of attribute length.



3
4
5
# File 'lib/telegram/bot/types/message_entity.rb', line 3

def length
  @length
end

#offsetObject

Returns the value of attribute offset.



3
4
5
# File 'lib/telegram/bot/types/message_entity.rb', line 3

def offset
  @offset
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/telegram/bot/types/message_entity.rb', line 3

def type
  @type
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/telegram/bot/types/message_entity.rb', line 3

def url
  @url
end

#userObject

Returns the value of attribute user.



3
4
5
# File 'lib/telegram/bot/types/message_entity.rb', line 3

def user
  @user
end