<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/lib/tom_tom, branch 6132-forms-breadcrumb</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>TomTom::Batch: Extract code to `#extract_costs_to_way_costs!`</title>
<updated>2018-03-14T15:38:40+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-12T14:25:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=33c2dad6ba2483a4c71d7248979bf9d82a65f234'/>
<id>33c2dad6ba2483a4c71d7248979bf9d82a65f234</id>
<content type='text'>
Extract some code from `#batch` to allow us to test the part that takes
distance and time values from the response JSON and put fill them into
`WayCost`s.

In order for the test to work, had to add an `#==` method to `WayCost`
and make `distance` and `time` accessors.

The JSON file fixture is a copy of a response from the TomTom `/batch`
API. The file is pretty big. I'm not sure if maybe I should condense it
for the sake of test performance.

Refs #6095
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Extract some code from `#batch` to allow us to test the part that takes
distance and time values from the response JSON and put fill them into
`WayCost`s.

In order for the test to work, had to add an `#==` method to `WayCost`
and make `distance` and `time` accessors.

The JSON file fixture is a copy of a response from the TomTom `/batch`
API. The file is pretty big. I'm not sure if maybe I should condense it
for the sake of test performance.

Refs #6095
</pre>
</div>
</content>
</entry>
<entry>
<title>TomTom::Batch: Rename `#convert_way_costs_for_batch`</title>
<updated>2018-03-14T15:38:40+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-12T11:52:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=e558625cd5e3cad60757a537320eb15f1c045cd0'/>
<id>e558625cd5e3cad60757a537320eb15f1c045cd0</id>
<content type='text'>
Rename to `#convert_way_costs` since this method now lives inside the
`TomTom::Batch` class, so that part of the name became redundant.

Refs #6095
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename to `#convert_way_costs` since this method now lives inside the
`TomTom::Batch` class, so that part of the name became redundant.

Refs #6095
</pre>
</div>
</content>
</entry>
<entry>
<title>TomTom: Provide `TomTom.batch(...)` method</title>
<updated>2018-03-14T15:38:40+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-12T11:50:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=05d2014dff30901feba5c9aab3e066d89d3771ca'/>
<id>05d2014dff30901feba5c9aab3e066d89d3771ca</id>
<content type='text'>
This change enables us to call `TomTom.batch(...)` instead of
`TomTom.new.batch(...)` a couple commits ago. This is nice because the
initialisation was kind of unnecessary for users of the class.

Refs #6095
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change enables us to call `TomTom.batch(...)` instead of
`TomTom.new.batch(...)` a couple commits ago. This is nice because the
initialisation was kind of unnecessary for users of the class.

Refs #6095
</pre>
</div>
</content>
</entry>
<entry>
<title>tom_tom/batch: Use `module ...` syntax</title>
<updated>2018-03-14T15:38:39+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-12T11:43:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=587bac0983d80a7ace5813e239ca951155fc56f6'/>
<id>587bac0983d80a7ace5813e239ca951155fc56f6</id>
<content type='text'>
Change the `TomTom::Batch` to `module ... class ...` syntax instead. I
like this better in this case.

Refs #6095
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change the `TomTom::Batch` to `module ... class ...` syntax instead. I
like this better in this case.

Refs #6095
</pre>
</div>
</content>
</entry>
<entry>
<title>Move `lib/tom_tom.rb` to `lib/tom_tom/batch.rb`</title>
<updated>2018-03-14T15:38:39+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-12T11:41:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=f04a89b3af581c8956add61e4a05edc0ae9405f5'/>
<id>f04a89b3af581c8956add61e4a05edc0ae9405f5</id>
<content type='text'>
Separate the functionality a little better by moving the `/batch`
endpoint code into a new class. The goal here is also to lay the
foundation for being able to call `TomTom.batch()` instead of
`TomTom.new.batch()`.

Refs #6095
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Separate the functionality a little better by moving the `/batch`
endpoint code into a new class. The goal here is also to lay the
foundation for being able to call `TomTom.batch()` instead of
`TomTom.new.batch()`.

Refs #6095
</pre>
</div>
</content>
</entry>
</feed>
