Class: Location

Inherits:
Object
  • Object
show all
Defined in:
lib/telegramObjects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Location

Returns a new instance of Location.



152
153
154
155
156
# File 'lib/telegramObjects.rb', line 152

def initialize json
  return if !json
  @latitute = json["latitude"]
  @longitude = json["longitude"]
end

Instance Attribute Details

#latitudeObject

Returns the value of attribute latitude.



151
152
153
# File 'lib/telegramObjects.rb', line 151

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



151
152
153
# File 'lib/telegramObjects.rb', line 151

def longitude
  @longitude
end