gotransverse-tract-api 0.11.2 → 0.12.0

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: ed16b84ad2eba1e7a94113fa6439c5001ccec245
4
- data.tar.gz: 90d7edfdec370d5288d91e593552ea3e75354980
3
+ metadata.gz: d9fc0b823183f373a0c87a496df3d7628468f070
4
+ data.tar.gz: 98f6aee3ab6dea47629fc2d5c8e18f19d7eab575
5
5
  SHA512:
6
- metadata.gz: 4a9ca377cbb348cc9ec25252a860c0ee35d6aa0af4019b5fcafd48201dd84056e17cf41992f4f73620c0c9ff2110aef8678da6ba88396107c139cf0f5164bbac
7
- data.tar.gz: 97b6caf59053e2ee4b62dfcb9133ac71c9b9b1c917833dbb913f4d9f0758a57b910db9bb4d6831c08b5aae6b113056758450c96ae0c0fd5fe65c8ef5f869c276
6
+ metadata.gz: 0d1a19e4913c7044bc257042b5e4973671e1b3835ddc16a9d6c3bb59e2138175c0b691ced259ab4927eb729329cf5ffb4949811d6df26de5c9ad1a349e794b09
7
+ data.tar.gz: f7de810fd3496c9c76eaa42caea980d3c0d1d7e6ef459b8b2aeb3dc00445b0c60288b4bb082591b7de6e2ec33b235d1be1ef172a83b6d4c9d5e53e02a0109699
@@ -61,6 +61,17 @@ module GoTransverseTractApi
61
61
  GoTransverseTractApi.get_response_for(self, params)
62
62
  end
63
63
 
64
+ #
65
+ # @param {Long} discount_identifier
66
+ # @param {Hash} options
67
+ #
68
+ def find_by_discount_identifier discount_identifier, options={}
69
+ return nil unless discount_identifier.present?
70
+
71
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({discount_identifier: discount_identifier}, options)
72
+ GoTransverseTractApi.get_response_for(self, params)
73
+ end
74
+
64
75
  end
65
76
 
66
77
  end
@@ -1,6 +1,6 @@
1
1
  module GoTransverseTractApi
2
2
 
3
- VERSION = "0.11.2"
3
+ VERSION = "0.12.0"
4
4
  TARGET_API_VERSION = "1.29"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotransverse-tract-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien DeFrance
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-22 00:00:00.000000000 Z
12
+ date: 2016-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler