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