Class: Telegram::Bot::Types::InlineQuery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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