gonebusy-ruby-client 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfde521b41be00998f17d835b98c98d521b7a92e
|
4
|
+
data.tar.gz: 188c8159b712f5cc33bf68b74f2336705da05ad4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd5ec8dabf41a39636f195874139c0d4cd84b635a8825205a114de3d2fd5e1c06903eb8e1f749591e8d8698b6396a80efc1468f85ea812fb89577e9de916891c
|
7
|
+
data.tar.gz: 77b3f97f80117c5c33c4763cf3d5525a0692ba1fc01079e9e9a9a42b4348fa763cf23e71c821f139661499629738f191cac9b008bc7cccb42341a31e24454f4e
|
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.1.
|
19
|
+
3. Once built, the gem can be installed on the current work environment using ``` gem install gonebusy-0.1.3.gem ```
|
20
20
|
|
21
21
|
## How to Use
|
22
22
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file was automatically generated by APIMATIC v2.0
|
1
|
+
# This file was automatically generated by APIMATIC v2.0.
|
2
2
|
|
3
3
|
module Gonebusy
|
4
4
|
class CreateBookingBody < BaseModel
|
@@ -50,6 +50,14 @@ module Gonebusy
|
|
50
50
|
# @return [DateRecursByEnum]
|
51
51
|
attr_accessor :date_recurs_by
|
52
52
|
|
53
|
+
# Optional name for Booking, otherwise will take name of Service.
|
54
|
+
# @return [String]
|
55
|
+
attr_accessor :name
|
56
|
+
|
57
|
+
# Optional description for Booking.
|
58
|
+
# @return [String]
|
59
|
+
attr_accessor :description
|
60
|
+
|
53
61
|
# A mapping from model property names to API property names
|
54
62
|
def self.names
|
55
63
|
if @_hash.nil?
|
@@ -66,6 +74,8 @@ module Gonebusy
|
|
66
74
|
@_hash["days"] = "days"
|
67
75
|
@_hash["occurrence"] = "occurrence"
|
68
76
|
@_hash["date_recurs_by"] = "date_recurs_by"
|
77
|
+
@_hash["name"] = "name"
|
78
|
+
@_hash["description"] = "description"
|
69
79
|
end
|
70
80
|
@_hash
|
71
81
|
end
|
@@ -81,7 +91,9 @@ module Gonebusy
|
|
81
91
|
frequency = nil,
|
82
92
|
days = nil,
|
83
93
|
occurrence = nil,
|
84
|
-
date_recurs_by = nil
|
94
|
+
date_recurs_by = nil,
|
95
|
+
name = nil,
|
96
|
+
description = nil)
|
85
97
|
@service_id = service_id
|
86
98
|
@date = date
|
87
99
|
@time = time
|
@@ -94,6 +106,8 @@ module Gonebusy
|
|
94
106
|
@days = days
|
95
107
|
@occurrence = occurrence
|
96
108
|
@date_recurs_by = date_recurs_by
|
109
|
+
@name = name
|
110
|
+
@description = description
|
97
111
|
end
|
98
112
|
|
99
113
|
# Creates an instance of the object from a hash
|
@@ -113,6 +127,8 @@ module Gonebusy
|
|
113
127
|
days = hash['days']
|
114
128
|
occurrence = hash['occurrence']
|
115
129
|
date_recurs_by = hash['date_recurs_by']
|
130
|
+
name = hash['name']
|
131
|
+
description = hash['description']
|
116
132
|
|
117
133
|
# Create object from extracted values
|
118
134
|
CreateBookingBody.new(service_id,
|
@@ -126,7 +142,9 @@ module Gonebusy
|
|
126
142
|
frequency,
|
127
143
|
days,
|
128
144
|
occurrence,
|
129
|
-
date_recurs_by
|
145
|
+
date_recurs_by,
|
146
|
+
name,
|
147
|
+
description)
|
130
148
|
end
|
131
149
|
end
|
132
150
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file was automatically generated by APIMATIC v2.0
|
1
|
+
# This file was automatically generated by APIMATIC v2.0.
|
2
2
|
|
3
3
|
module Gonebusy
|
4
4
|
class EntitiesBookingResponse < BaseModel
|
@@ -14,9 +14,9 @@ module Gonebusy
|
|
14
14
|
# @return [String]
|
15
15
|
attr_accessor :workflow_state
|
16
16
|
|
17
|
-
#
|
17
|
+
# name of Booking, if any
|
18
18
|
# @return [String]
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :name
|
20
20
|
|
21
21
|
# TimeWindow corresponding to Booking
|
22
22
|
# @return [EntitiesTimeWindowResponse]
|
@@ -30,6 +30,18 @@ module Gonebusy
|
|
30
30
|
# @return [Integer]
|
31
31
|
attr_accessor :service_id
|
32
32
|
|
33
|
+
# description for Booking, if any
|
34
|
+
# @return [String]
|
35
|
+
attr_accessor :description
|
36
|
+
|
37
|
+
# external management link for Booking, if any
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :external_link
|
40
|
+
|
41
|
+
# video chat or other link associated with Booking, if any
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :collaborative_link
|
44
|
+
|
33
45
|
# A mapping from model property names to API property names
|
34
46
|
def self.names
|
35
47
|
if @_hash.nil?
|
@@ -37,10 +49,13 @@ module Gonebusy
|
|
37
49
|
@_hash["id"] = "id"
|
38
50
|
@_hash["owner_id"] = "owner_id"
|
39
51
|
@_hash["workflow_state"] = "workflow_state"
|
40
|
-
@_hash["
|
52
|
+
@_hash["name"] = "name"
|
41
53
|
@_hash["time_window"] = "time_window"
|
42
54
|
@_hash["resource_id"] = "resource_id"
|
43
55
|
@_hash["service_id"] = "service_id"
|
56
|
+
@_hash["description"] = "description"
|
57
|
+
@_hash["external_link"] = "external_link"
|
58
|
+
@_hash["collaborative_link"] = "collaborative_link"
|
44
59
|
end
|
45
60
|
@_hash
|
46
61
|
end
|
@@ -48,17 +63,23 @@ module Gonebusy
|
|
48
63
|
def initialize(id = nil,
|
49
64
|
owner_id = nil,
|
50
65
|
workflow_state = nil,
|
51
|
-
|
66
|
+
name = nil,
|
52
67
|
time_window = nil,
|
53
68
|
resource_id = nil,
|
54
|
-
service_id = nil
|
69
|
+
service_id = nil,
|
70
|
+
description = nil,
|
71
|
+
external_link = nil,
|
72
|
+
collaborative_link = nil)
|
55
73
|
@id = id
|
56
74
|
@owner_id = owner_id
|
57
75
|
@workflow_state = workflow_state
|
58
|
-
@
|
76
|
+
@name = name
|
59
77
|
@time_window = time_window
|
60
78
|
@resource_id = resource_id
|
61
79
|
@service_id = service_id
|
80
|
+
@description = description
|
81
|
+
@external_link = external_link
|
82
|
+
@collaborative_link = collaborative_link
|
62
83
|
end
|
63
84
|
|
64
85
|
# Creates an instance of the object from a hash
|
@@ -69,19 +90,25 @@ module Gonebusy
|
|
69
90
|
id = hash['id']
|
70
91
|
owner_id = hash['owner_id']
|
71
92
|
workflow_state = hash['workflow_state']
|
72
|
-
|
93
|
+
name = hash['name']
|
73
94
|
time_window = EntitiesTimeWindowResponse.from_hash(hash['time_window']) if hash['time_window']
|
74
95
|
resource_id = hash['resource_id']
|
75
96
|
service_id = hash['service_id']
|
97
|
+
description = hash['description']
|
98
|
+
external_link = hash['external_link']
|
99
|
+
collaborative_link = hash['collaborative_link']
|
76
100
|
|
77
101
|
# Create object from extracted values
|
78
102
|
EntitiesBookingResponse.new(id,
|
79
103
|
owner_id,
|
80
104
|
workflow_state,
|
81
|
-
|
105
|
+
name,
|
82
106
|
time_window,
|
83
107
|
resource_id,
|
84
|
-
service_id
|
108
|
+
service_id,
|
109
|
+
description,
|
110
|
+
external_link,
|
111
|
+
collaborative_link)
|
85
112
|
end
|
86
113
|
end
|
87
114
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file was automatically generated by APIMATIC v2.0
|
1
|
+
# This file was automatically generated by APIMATIC v2.0.
|
2
2
|
|
3
3
|
module Gonebusy
|
4
4
|
class UpdateBookingByIdBody < BaseModel
|
@@ -42,6 +42,14 @@ module Gonebusy
|
|
42
42
|
# @return [String]
|
43
43
|
attr_accessor :update_recurring
|
44
44
|
|
45
|
+
# New name for Booking.
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :name
|
48
|
+
|
49
|
+
# New description for Booking.
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :description
|
52
|
+
|
45
53
|
# A mapping from model property names to API property names
|
46
54
|
def self.names
|
47
55
|
if @_hash.nil?
|
@@ -56,6 +64,8 @@ module Gonebusy
|
|
56
64
|
@_hash["occurrence"] = "occurrence"
|
57
65
|
@_hash["date_recurs_by"] = "date_recurs_by"
|
58
66
|
@_hash["update_recurring"] = "update_recurring"
|
67
|
+
@_hash["name"] = "name"
|
68
|
+
@_hash["description"] = "description"
|
59
69
|
end
|
60
70
|
@_hash
|
61
71
|
end
|
@@ -69,7 +79,9 @@ module Gonebusy
|
|
69
79
|
days = nil,
|
70
80
|
occurrence = nil,
|
71
81
|
date_recurs_by = nil,
|
72
|
-
update_recurring = nil
|
82
|
+
update_recurring = nil,
|
83
|
+
name = nil,
|
84
|
+
description = nil)
|
73
85
|
@date = date
|
74
86
|
@time = time
|
75
87
|
@duration = duration
|
@@ -80,6 +92,8 @@ module Gonebusy
|
|
80
92
|
@occurrence = occurrence
|
81
93
|
@date_recurs_by = date_recurs_by
|
82
94
|
@update_recurring = update_recurring
|
95
|
+
@name = name
|
96
|
+
@description = description
|
83
97
|
end
|
84
98
|
|
85
99
|
# Creates an instance of the object from a hash
|
@@ -97,6 +111,8 @@ module Gonebusy
|
|
97
111
|
occurrence = hash['occurrence']
|
98
112
|
date_recurs_by = hash['date_recurs_by']
|
99
113
|
update_recurring = hash['update_recurring']
|
114
|
+
name = hash['name']
|
115
|
+
description = hash['description']
|
100
116
|
|
101
117
|
# Create object from extracted values
|
102
118
|
UpdateBookingByIdBody.new(date,
|
@@ -108,7 +124,9 @@ module Gonebusy
|
|
108
124
|
days,
|
109
125
|
occurrence,
|
110
126
|
date_recurs_by,
|
111
|
-
update_recurring
|
127
|
+
update_recurring,
|
128
|
+
name,
|
129
|
+
description)
|
112
130
|
end
|
113
131
|
end
|
114
132
|
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.3
|
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-06-
|
11
|
+
date: 2017-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logging
|