Class: IRail::MIVBSTIB::Attributes::Coordinate

Inherits:
Virtus::Attribute::Object
  • Object
show all
Defined in:
lib/ruby-irail/packages/mivbstib/models/station.rb

Instance Method Summary collapse

Instance Method Details

#coerce(value) ⇒ Object



8
9
10
# File 'lib/ruby-irail/packages/mivbstib/models/station.rb', line 8

def coerce(value)
  value.strip.to_f
end