physical 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e4ba860fa3455e767610003a3f3289a8258475d
|
4
|
+
data.tar.gz: 64ca6a082897e15e864f008a5f62e905f3b729f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 949da5a40f8a79108471090cfdb7ccc20cdb726ad49b9a434332c818f7fdf1d9c6dec400ce6c114dbfe17e1ec0c98c1761ea21884a5ee39fa1f14c99bd3fd202
|
7
|
+
data.tar.gz: 79d2c5fbbb2ae1551e012dbc226dfcf051368ea07008da56db96ad2f80875234fcf94d3f333115d5875545be3d27fd0525c5a94435b74f8abc85d04182356e27
|
data/lib/physical/shipment.rb
CHANGED
@@ -5,15 +5,15 @@ module Physical
|
|
5
5
|
attr_reader :id,
|
6
6
|
:origin,
|
7
7
|
:destination,
|
8
|
-
:
|
8
|
+
:service_code,
|
9
9
|
:packages,
|
10
10
|
:options
|
11
11
|
|
12
|
-
def initialize(id: nil, origin: nil, destination: nil,
|
12
|
+
def initialize(id: nil, origin: nil, destination: nil, service_code: nil, packages: [], options: {})
|
13
13
|
@id = id || SecureRandom.uuid
|
14
14
|
@origin = origin
|
15
15
|
@destination = destination
|
16
|
-
@
|
16
|
+
@service_code = service_code
|
17
17
|
@packages = packages
|
18
18
|
@options = options
|
19
19
|
end
|
@@ -7,7 +7,7 @@ FactoryBot.define do
|
|
7
7
|
origin { FactoryBot.build(:physical_location) }
|
8
8
|
destination { FactoryBot.build(:physical_location) }
|
9
9
|
packages { build_list(:physical_package, 2) }
|
10
|
-
|
10
|
+
service_code { "usps_priority_mail" }
|
11
11
|
initialize_with { new(attributes) }
|
12
12
|
end
|
13
13
|
end
|
data/lib/physical/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: physical
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Meyerhoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carmen
|