Class: Telegrammer::DataTypes::Location

Inherits:
Base
  • Object
show all
Defined in:
lib/telegrammer/data_types/location.rb

Overview

Telegram Location data type

See more at core.telegram.org/bots/api#location

Instance Attribute Summary collapse

Instance Attribute Details

#latitudeFloat

Latitude as defined by sender

Returns:

  • (Float)

    the current value of latitude



9
10
11
# File 'lib/telegrammer/data_types/location.rb', line 9

def latitude
  @latitude
end

#longitudeFloat

Longitude as defined by sender

Returns:

  • (Float)

    the current value of longitude



9
10
11
# File 'lib/telegrammer/data_types/location.rb', line 9

def longitude
  @longitude
end