Class: Telegram::Bot::Types::Venue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Venue

Returns a new instance of Venue.



8
9
10
# File 'lib/telegram/bot/types/venue.rb', line 8

def initialize(attributes)
  attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k }
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



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

def address
  @address
end

#foursquare_idObject

Returns the value of attribute foursquare_id.



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

def foursquare_id
  @foursquare_id
end

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end