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.



156
157
158
159
160
# File 'lib/telegramObjects.rb', line 156

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

Instance Attribute Details

#latitudeObject

Returns the value of attribute latitude.



155
156
157
# File 'lib/telegramObjects.rb', line 155

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



155
156
157
# File 'lib/telegramObjects.rb', line 155

def longitude
  @longitude
end