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