Class: Rome2rio::Position

Inherits:
EncodedNumberPair show all
Defined in:
lib/rome2rio/helper/position.rb

Instance Attribute Summary collapse

Attributes inherited from EncodedNumberPair

#a, #b

Method Summary

Methods inherited from EncodedNumberPair

#initialize, parse, #to_s

Constructor Details

This class inherits a constructor from Rome2rio::EncodedNumberPair

Instance Attribute Details

#lat=(value) ⇒ Object

Sets the attribute lat

Parameters:

  • value

    the value to set the attribute lat to.



3
4
5
# File 'lib/rome2rio/helper/position.rb', line 3

def lat=(value)
  @lat = value
end

#lng=(value) ⇒ Object

Sets the attribute lng

Parameters:

  • value

    the value to set the attribute lng to.



3
4
5
# File 'lib/rome2rio/helper/position.rb', line 3

def lng=(value)
  @lng = value
end