RDC 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: f852867ecebeb1a86b0c8a91a7c2f4a3d637b30767d919cba6d578ed89d77a4f
4
- data.tar.gz: a82a6beb5364f4f8c4224a8494f775a0363e4c299c0a82461d2e6e338f2da290
3
+ metadata.gz: e936f5283b222795b69afa3c80d65edbaeb7e3bbc86fbdc097bf0aaae53b93ef
4
+ data.tar.gz: 63ac56ea67da9cd07a1f237bb484c1a18502ef57fbd6746d9ae49beb3ab0bb00
5
5
  SHA512:
6
- metadata.gz: d014649ea7c22cebd3a00cbfe4d4c346fc9c717d89debe169d798b7c31d1ed542ed1c6e0049a3753645faf908d2cf08ad9ebae4268481e214c311af9c0ff9b6e
7
- data.tar.gz: 5b9626d8490497f1da0dc87219abd0b570103baec86fa61af533c1fd6a3a72ba9051434340df35f16bba2df70ad17e75aa8e21655be740b66e2cd7e5aeabc0f5
6
+ metadata.gz: e029ad903444d251fe4bd3e2587986ace99a27bf44b202fd665220eb8c3fb45d66fb2cc3391d530f898c2a3ec3b492314be9b4335993425b302d9ea09773c0f3
7
+ data.tar.gz: 22ebe77b744fefdbf0bf16a729ac4cfc4c0e33ce75597f61ad84e3789d6741bcd8ec35c53453d56bd8d36f8ac2a468770dda3d9afb6df326c0d87407866a54a9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- RDC (0.1.3)
4
+ RDC (0.1.4)
5
5
  activesupport (= 5.2.3)
6
6
  net-sftp (= 3.0.0)
7
7
  rubyzip
@@ -2,16 +2,17 @@
2
2
 
3
3
  module RDC
4
4
  class Item
5
- attr_accessor :sku, :legacy_sku, :value, :price, :restriction, :restriction_detail
5
+ attr_accessor :sku, :legacy_sku, :value, :price, :restriction, :restriction_detail,
6
+ :available_inventory
6
7
 
7
8
  def initialize(hash_values)
8
- puts "Hash Values :: #{hash_values}"
9
9
  @sku = hash_values['ProductSKU']
10
10
  @legacy_sku = hash_values['LegacyProductSKU']
11
11
  @value = hash_values['ItemValue']
12
12
  @price = hash_values['ItemPrice']
13
13
  @restriction = hash_values['ItemRestriction']
14
14
  @restriction_detail = hash_values['ItemRestrictionDetail']
15
+ @available_inventory = hash_values['ItemAvailableInventory']
15
16
  end
16
17
  end
17
18
  end
@@ -5,7 +5,8 @@ require_relative 'item'
5
5
  module RDC
6
6
  class Restaurant
7
7
  attr_accessor :name, :items, :short_description, :long_description,
8
- :online, :address, :image, :id
8
+ :online, :address, :image, :id, :communication_media,
9
+ :recommended_rank, :rating
9
10
 
10
11
  def initialize(hash_values)
11
12
  @id = hash_values['LegacyRestaurantId']
@@ -13,8 +14,11 @@ module RDC
13
14
  @short_description = hash_values['ShortDescription']
14
15
  @long_description = hash_values['LongDescription']
15
16
  @online = hash_values['OnlineReservation']
17
+ @recommended_rank = hash_values['RecommendedRank']
18
+ @rating = hash_values['Rating']
16
19
 
17
20
  @address = hash_values['LocationAddress']
21
+ @communication_media = hash_values['CommunicationMedia']
18
22
  @image = hash_values.dig('CatalogImagesFullPath', 'MainLogo')
19
23
  @items = Array.wrap(hash_values.dig('Items', 'Item')).collect { |item_hash| RDC::Item.new(item_hash) }
20
24
  end
@@ -1,3 +1,3 @@
1
1
  module RDC
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RDC
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - davidrichey
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-12-15 00:00:00.000000000 Z
12
+ date: 2020-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport