hotel_beds 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c13c4cc2853463a5efd1eb7a84706e97ba99a657
4
- data.tar.gz: f1028bf38d8d34b2d125c9cdb802d39deddbe3ca
3
+ metadata.gz: cd7ca89c96613c5ff93444ac446082c051ab4c75
4
+ data.tar.gz: 212d402526f959df8ba56120011ef9a1b38f49bb
5
5
  SHA512:
6
- metadata.gz: b7967f82acbd3bcd8660d37748b6bc83eaacdbd6356896492f6dcc55b09a0c530700d5374ded1c8d7cf2e3e0b06134b1720d58e6b3e805567aab9ea55892ff46
7
- data.tar.gz: 1809bf53d2f77f5f5a9eaf68fc0f6134d4b00c64932390474fbed49ba019aad3bd52da1b4f5b226b28e838632ba5fbc286f0509f5748a146cd4b0e79bc7799f0
6
+ metadata.gz: 0bbb6cd3e5f7e6b80b9d4577c04f9f90fee5f5a9d032a8e09d57c5438bebd5044e2f190afe36fd780ab7bf46539c8f49a12d89940d6105bf429136c01f1807b9
7
+ data.tar.gz: 0cfe539340a14286ecf63aaf0e2d94e14b617f7bec48b937db3ffa1af4f994758ac8e03fe12e76d1df4e4bb82084d6dbb79e184ee33899bb473545656ec588f7
@@ -17,7 +17,8 @@ module HotelBeds
17
17
  attribute :price, BigDecimal
18
18
  attribute :number_available, Integer
19
19
  attribute :rates, Hash[Date => BigDecimal]
20
- attribute :cancellation_policy, HotelBeds::Model::CancellationPolicy
20
+ attribute :cancellation_policies, Array[HotelBeds::Model::CancellationPolicy],
21
+ default: Array.new
21
22
  attribute :customers, Array[HotelBeds::Model::Customer],
22
23
  default: Array.new
23
24
 
@@ -21,8 +21,8 @@ module HotelBeds
21
21
  attribute :room_type_characteristic,
22
22
  selector: "HotelRoom RoomType", attr: "characteristic"
23
23
  attribute :price, selector: "HotelRoom > Price > Amount"
24
- attribute :cancellation_policy,
25
- selector: "HotelRoom CancellationPolicy",
24
+ attribute :cancellation_policies,
25
+ selector: "HotelRoom CancellationPolicy", multiple: true,
26
26
  parser: HotelBeds::Parser::CancellationPolicy
27
27
  attribute :rates,
28
28
  selector: "Price PriceList Price", multiple: true,
@@ -1,3 +1,3 @@
1
1
  module HotelBeds
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -107,7 +107,7 @@ RSpec.describe "ordering a hotel room" do
107
107
 
108
108
  it "should have a cancellation policy" do
109
109
  subject.each do |room|
110
- expect(room.cancellation_policy).to_not be_nil
110
+ expect(room.cancellation_policies).to_not be_empty
111
111
  end
112
112
  end
113
113
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotel_beds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Townsend