Class: Location
- Inherits:
-
Object
- Object
- Location
- Defined in:
- lib/telegramObjects.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(json) ⇒ Location
constructor
A new instance of Location.
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
#latitude ⇒ Object
Returns the value of attribute latitude.
151 152 153 |
# File 'lib/telegramObjects.rb', line 151 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
151 152 153 |
# File 'lib/telegramObjects.rb', line 151 def longitude @longitude end |