Class: Rome2rio::Offset

Inherits:
EncodedNumberPair show all
Defined in:
lib/rome2rio/helper/offset.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

#x=(value) ⇒ Object

Sets the attribute x

Parameters:

  • value

    the value to set the attribute x to.



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

def x=(value)
  @x = value
end

#y=(value) ⇒ Object

Sets the attribute y

Parameters:

  • value

    the value to set the attribute y to.



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

def y=(value)
  @y = value
end