Class: Telegram::Bot::Types::Update
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::Update
- Defined in:
- lib/telegram/bot/types/update.rb
Instance Attribute Summary collapse
-
#callback_query ⇒ Object
Returns the value of attribute callback_query.
-
#channel_post ⇒ Object
Returns the value of attribute channel_post.
-
#chosen_inline_result ⇒ Object
Returns the value of attribute chosen_inline_result.
-
#edited_channel_post ⇒ Object
Returns the value of attribute edited_channel_post.
-
#edited_message ⇒ Object
Returns the value of attribute edited_message.
-
#inline_query ⇒ Object
Returns the value of attribute inline_query.
-
#message ⇒ Object
Returns the value of attribute message.
-
#pre_checkout_query ⇒ Object
Returns the value of attribute pre_checkout_query.
-
#shipping_query ⇒ Object
Returns the value of attribute shipping_query.
-
#update_id ⇒ Object
Returns the value of attribute update_id.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Update
constructor
A new instance of Update.
Constructor Details
#initialize(attributes) ⇒ Update
Returns a new instance of Update.
14 15 16 |
# File 'lib/telegram/bot/types/update.rb', line 14 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#callback_query ⇒ Object
Returns the value of attribute callback_query.
3 4 5 |
# File 'lib/telegram/bot/types/update.rb', line 3 def callback_query @callback_query end |
#channel_post ⇒ Object
Returns the value of attribute channel_post.
3 4 5 |
# File 'lib/telegram/bot/types/update.rb', line 3 def channel_post @channel_post end |
#chosen_inline_result ⇒ Object
Returns the value of attribute chosen_inline_result.
3 4 5 |
# File 'lib/telegram/bot/types/update.rb', line 3 def chosen_inline_result @chosen_inline_result end |
#edited_channel_post ⇒ Object
Returns the value of attribute edited_channel_post.
3 4 5 |
# File 'lib/telegram/bot/types/update.rb', line 3 def edited_channel_post @edited_channel_post end |
#edited_message ⇒ Object
Returns the value of attribute edited_message.
3 4 5 |
# File 'lib/telegram/bot/types/update.rb', line 3 def end |
#inline_query ⇒ Object
Returns the value of attribute inline_query.
3 4 5 |
# File 'lib/telegram/bot/types/update.rb', line 3 def inline_query @inline_query end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/telegram/bot/types/update.rb', line 3 def end |
#pre_checkout_query ⇒ Object
Returns the value of attribute pre_checkout_query.
3 4 5 |
# File 'lib/telegram/bot/types/update.rb', line 3 def pre_checkout_query @pre_checkout_query end |
#shipping_query ⇒ Object
Returns the value of attribute shipping_query.
3 4 5 |
# File 'lib/telegram/bot/types/update.rb', line 3 def shipping_query @shipping_query end |
#update_id ⇒ Object
Returns the value of attribute update_id.
3 4 5 |
# File 'lib/telegram/bot/types/update.rb', line 3 def update_id @update_id end |