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: 4af0a4a737e1d5585f7770e4f27a57c22ef2163f
4
- data.tar.gz: b15c1709a756d83168bb2bd442922c5111dff5ab
3
+ metadata.gz: 8e4ba860fa3455e767610003a3f3289a8258475d
4
+ data.tar.gz: 64ca6a082897e15e864f008a5f62e905f3b729f3
5
5
  SHA512:
6
- metadata.gz: d1e3b5f4546d845e6eee5b94872048c2daac05c9fbd14f410a9fa5ab938f14cfdd081331732e6aba0e5c929ed6e3171b24a955ada2ce2a98e2dc08d28f9c7ae8
7
- data.tar.gz: 47352b147c34e80078e8eba73c381d2893813bb9867262c474285a63964fdbf812709ee933d3313b40d8dfbb16440461af0d0a0676bf2855bfea0d9349747870
6
+ metadata.gz: 949da5a40f8a79108471090cfdb7ccc20cdb726ad49b9a434332c818f7fdf1d9c6dec400ce6c114dbfe17e1ec0c98c1761ea21884a5ee39fa1f14c99bd3fd202
7
+ data.tar.gz: 79d2c5fbbb2ae1551e012dbc226dfcf051368ea07008da56db96ad2f80875234fcf94d3f333115d5875545be3d27fd0525c5a94435b74f8abc85d04182356e27
@@ -5,15 +5,15 @@ module Physical
5
5
  attr_reader :id,
6
6
  :origin,
7
7
  :destination,
8
- :shipping_method,
8
+ :service_code,
9
9
  :packages,
10
10
  :options
11
11
 
12
- def initialize(id: nil, origin: nil, destination: nil, shipping_method: nil, packages: [], options: {})
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
- @shipping_method = shipping_method
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
- shipping_method { "USPS Priority" }
10
+ service_code { "usps_priority_mail" }
11
11
  initialize_with { new(attributes) }
12
12
  end
13
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Physical
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
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.0
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-16 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carmen