booking_locations 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module BookingLocations
2
- VERSION = '0.15.0'.freeze
2
+ VERSION = '0.16.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booking_locations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Lovell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-16 00:00:00.000000000 Z
11
+ date: 2017-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -135,7 +135,6 @@ files:
135
135
  - lib/booking_locations.rb
136
136
  - lib/booking_locations/api.rb
137
137
  - lib/booking_locations/location.rb
138
- - lib/booking_locations/slot.rb
139
138
  - lib/booking_locations/stub_api.json
140
139
  - lib/booking_locations/stub_api.rb
141
140
  - lib/booking_locations/version.rb
@@ -1,17 +0,0 @@
1
- require 'ostruct'
2
-
3
- module BookingLocations
4
- class Slot < OpenStruct
5
- def to_calendar
6
- ["#{calendar_date} - #{period}", "#{date}-#{start}-#{self.end}"]
7
- end
8
-
9
- def calendar_date
10
- Date.parse(date).strftime('%A, %b %e')
11
- end
12
-
13
- def period
14
- start == '0900' ? 'Morning' : 'Afternoon'
15
- end
16
- end
17
- end