Class: Telegram::Bot::Types::Location

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#latitudeObject

Returns the value of attribute latitude.



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

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



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

def longitude
  @longitude
end