Class: Telegram::Bot::Types::Venue
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::Venue
- Defined in:
- lib/telegram/bot/types/venue.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#foursquare_id ⇒ Object
Returns the value of attribute foursquare_id.
-
#location ⇒ Object
Returns the value of attribute location.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Venue
constructor
A new instance of Venue.
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
#address ⇒ Object
Returns the value of attribute address.
3 4 5 |
# File 'lib/telegram/bot/types/venue.rb', line 3 def address @address end |
#foursquare_id ⇒ Object
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 |
#location ⇒ Object
Returns the value of attribute location.
3 4 5 |
# File 'lib/telegram/bot/types/venue.rb', line 3 def location @location end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/telegram/bot/types/venue.rb', line 3 def title @title end |