marinetraffic 0.0.3 → 0.0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/marinetraffic/version.rb +1 -1
- data/lib/marinetraffic/vessel.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf8f591bf3cf4c71b55288c3cb2d567e27b8e1dd
|
4
|
+
data.tar.gz: cbfd304fcf37660ce6f48f860da6335cb4a1a31e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d65378cd2ecf37618d7295d4fdcc29ceaa732577622389154d4e287720d2bff8f3b1fde67e2127350bf2935025340493c96a0062142e9f1c41ec0a8799081f8
|
7
|
+
data.tar.gz: d86c9878b2ed9a322aa317e2ba0808573a7d965ab2f2880789c3b193df7528c06bab1be02f2218b6ab1a79e34eae3285f41635989cc2548b85f4366ab7a077e9
|
data/lib/marinetraffic/vessel.rb
CHANGED
@@ -2,7 +2,7 @@ module Marinetraffic
|
|
2
2
|
class Vessel
|
3
3
|
|
4
4
|
attr_reader :mmsi, :lat, :lon, :speed, :course, :status, :timestamp
|
5
|
-
attr_reader :ship_type, :ship_name, :imo, :callsign, :flag, :current_port, :last_port, :last_port_time, :destination, :eta, :length, :draught, :grt, :dwt, :year_built
|
5
|
+
attr_reader :ship_type, :ship_name, :imo, :callsign, :flag, :current_port, :last_port, :last_port_time, :destination, :eta, :length, :width, :draught, :grt, :dwt, :year_built
|
6
6
|
|
7
7
|
def initialize(attributes = {})
|
8
8
|
@mmsi = attributes["mmsi"]
|
@@ -23,6 +23,7 @@ module Marinetraffic
|
|
23
23
|
@destination = attributes["destination"]
|
24
24
|
@eta = attributes["eta"]
|
25
25
|
@length = attributes["length"]
|
26
|
+
@width = attributes["width"]
|
26
27
|
@draught = attributes["draught"]
|
27
28
|
@grt = attributes["grt"]
|
28
29
|
@dwt = attributes["dwt"]
|
@@ -58,6 +59,7 @@ module Marinetraffic
|
|
58
59
|
attributes["destination"] = list.shift
|
59
60
|
attributes["eta"] = list.shift
|
60
61
|
attributes["length"] = list.shift
|
62
|
+
attributes["width"] = list.shift
|
61
63
|
attributes["draught"] = list.shift
|
62
64
|
attributes["grt"] = list.shift
|
63
65
|
attributes["dwt"] = list.shift
|