gonebusy-ruby-client 0.1.1 → 0.1.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 +4 -4
- data/README.md +1 -1
- data/lib/gonebusy/models/entities_booking_response.rb +20 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f041b34fe83e58ef4f621e5916b38a9aa2215938
|
4
|
+
data.tar.gz: ec7cd42db2169d8dd4429b9f99290cc087a53c28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75e58e15c72f9a8772c9a4ba2450fe70f7daed2b211f67c5befe9b2d2c6e2536fb3a762004a89002c69f7e71576ee4eddbf9e24b764bf62c12fa1cc340530d13
|
7
|
+
data.tar.gz: 0f67906677aa26af8fb99252edf1b9a1575622b7db321dedd940311082027a7183506d0872b41933599f33c623fc8ba4a43faa250c1b22760d34f24a3c75d0e9
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ This client library is a Ruby gem which can be compiled and used in your Ruby an
|
|
16
16
|
|
17
17
|
1. Open the command line interface or the terminal and navigate to the folder containing the source code.
|
18
18
|
2. Run ``` gem build gonebusy.gemspec ``` to build the gem.
|
19
|
-
3. Once built, the gem can be installed on the current work environment using ``` gem install gonebusy-0.
|
19
|
+
3. Once built, the gem can be installed on the current work environment using ``` gem install gonebusy-0.1.2.gem ```
|
20
20
|
|
21
21
|
## How to Use
|
22
22
|
|
@@ -22,6 +22,14 @@ module Gonebusy
|
|
22
22
|
# @return [EntitiesTimeWindowResponse]
|
23
23
|
attr_accessor :time_window
|
24
24
|
|
25
|
+
# id of Resource performing Booking
|
26
|
+
# @return [Integer]
|
27
|
+
attr_accessor :resource_id
|
28
|
+
|
29
|
+
# id of Service booked
|
30
|
+
# @return [Integer]
|
31
|
+
attr_accessor :service_id
|
32
|
+
|
25
33
|
# A mapping from model property names to API property names
|
26
34
|
def self.names
|
27
35
|
if @_hash.nil?
|
@@ -31,6 +39,8 @@ module Gonebusy
|
|
31
39
|
@_hash["workflow_state"] = "workflow_state"
|
32
40
|
@_hash["user_message"] = "user_message"
|
33
41
|
@_hash["time_window"] = "time_window"
|
42
|
+
@_hash["resource_id"] = "resource_id"
|
43
|
+
@_hash["service_id"] = "service_id"
|
34
44
|
end
|
35
45
|
@_hash
|
36
46
|
end
|
@@ -39,12 +49,16 @@ module Gonebusy
|
|
39
49
|
owner_id = nil,
|
40
50
|
workflow_state = nil,
|
41
51
|
user_message = nil,
|
42
|
-
time_window = nil
|
52
|
+
time_window = nil,
|
53
|
+
resource_id = nil,
|
54
|
+
service_id = nil)
|
43
55
|
@id = id
|
44
56
|
@owner_id = owner_id
|
45
57
|
@workflow_state = workflow_state
|
46
58
|
@user_message = user_message
|
47
59
|
@time_window = time_window
|
60
|
+
@resource_id = resource_id
|
61
|
+
@service_id = service_id
|
48
62
|
end
|
49
63
|
|
50
64
|
# Creates an instance of the object from a hash
|
@@ -57,13 +71,17 @@ module Gonebusy
|
|
57
71
|
workflow_state = hash['workflow_state']
|
58
72
|
user_message = hash['user_message']
|
59
73
|
time_window = EntitiesTimeWindowResponse.from_hash(hash['time_window']) if hash['time_window']
|
74
|
+
resource_id = hash['resource_id']
|
75
|
+
service_id = hash['service_id']
|
60
76
|
|
61
77
|
# Create object from extracted values
|
62
78
|
EntitiesBookingResponse.new(id,
|
63
79
|
owner_id,
|
64
80
|
workflow_state,
|
65
81
|
user_message,
|
66
|
-
time_window
|
82
|
+
time_window,
|
83
|
+
resource_id,
|
84
|
+
service_id)
|
67
85
|
end
|
68
86
|
end
|
69
87
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gonebusy-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Agranov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logging
|