Class: Telegram::Bot::Types::InlineQuery
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::InlineQuery
- Defined in:
- lib/telegram/bot/types/inline_query.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#id ⇒ Object
Returns the value of attribute id.
-
#location ⇒ Object
Returns the value of attribute location.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ InlineQuery
constructor
A new instance of InlineQuery.
Constructor Details
#initialize(attributes) ⇒ InlineQuery
Returns a new instance of InlineQuery.
9 10 11 |
# File 'lib/telegram/bot/types/inline_query.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/inline_query.rb', line 3 def from @from end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/telegram/bot/types/inline_query.rb', line 3 def id @id end |
#location ⇒ Object
Returns the value of attribute location.
3 4 5 |
# File 'lib/telegram/bot/types/inline_query.rb', line 3 def location @location end |
#offset ⇒ Object
Returns the value of attribute offset.
3 4 5 |
# File 'lib/telegram/bot/types/inline_query.rb', line 3 def offset @offset end |
#query ⇒ Object
Returns the value of attribute query.
3 4 5 |
# File 'lib/telegram/bot/types/inline_query.rb', line 3 def query @query end |