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.
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
#latitude ⇒ Object
Returns the value of attribute latitude.
155 156 157 |
# File 'lib/telegramObjects.rb', line 155 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
155 156 157 |
# File 'lib/telegramObjects.rb', line 155 def longitude @longitude end |