gonebusy-ruby-client 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +29 -68
- data/lib/gonebusy/api_helper.rb +181 -149
- data/lib/gonebusy/configuration.rb +51 -16
- data/lib/gonebusy/controllers/base_controller.rb +46 -45
- data/lib/gonebusy/controllers/bookings_controller.rb +257 -293
- data/lib/gonebusy/controllers/categories_controller.rb +151 -180
- data/lib/gonebusy/controllers/pricing_models_controller.rb +202 -241
- data/lib/gonebusy/controllers/resources_controller.rb +295 -355
- data/lib/gonebusy/controllers/schedules_controller.rb +361 -428
- data/lib/gonebusy/controllers/search_controller.rb +52 -63
- data/lib/gonebusy/controllers/services_controller.rb +310 -367
- data/lib/gonebusy/controllers/users_controller.rb +199 -239
- data/lib/gonebusy/exceptions/api_exception.rb +16 -16
- data/lib/gonebusy/exceptions/entities_error_error_exception.rb +27 -0
- data/lib/gonebusy/exceptions/entities_error_exception.rb +26 -26
- data/lib/gonebusy/gonebusy_client.rb +58 -58
- data/lib/gonebusy/http/auth/custom_auth.rb +15 -15
- data/lib/gonebusy/http/faraday_client.rb +43 -41
- data/lib/gonebusy/http/http_call_back.rb +17 -17
- data/lib/gonebusy/http/http_client.rb +84 -82
- data/lib/gonebusy/http/http_context.rb +15 -15
- data/lib/gonebusy/http/http_method_enum.rb +7 -7
- data/lib/gonebusy/http/http_request.rb +44 -44
- data/lib/gonebusy/http/http_response.rb +19 -19
- data/lib/gonebusy/models/base_model.rb +31 -31
- data/lib/gonebusy/models/cancel_booking_by_id_response.rb +35 -35
- data/lib/gonebusy/models/create_booking_body.rb +134 -80
- data/lib/gonebusy/models/create_booking_response.rb +35 -35
- data/lib/gonebusy/models/create_category_body.rb +71 -71
- data/lib/gonebusy/models/create_category_response.rb +35 -35
- data/lib/gonebusy/models/create_pricing_model_body.rb +80 -80
- data/lib/gonebusy/models/create_pricing_model_response.rb +35 -35
- data/lib/gonebusy/models/create_resource_body.rb +89 -89
- data/lib/gonebusy/models/create_resource_response.rb +35 -35
- data/lib/gonebusy/models/create_schedule_body.rb +143 -144
- data/lib/gonebusy/models/create_schedule_response.rb +35 -35
- data/lib/gonebusy/models/create_schedule_time_window_body.rb +116 -117
- data/lib/gonebusy/models/create_schedule_time_window_response.rb +35 -35
- data/lib/gonebusy/models/create_service_body.rb +107 -107
- data/lib/gonebusy/models/create_service_response.rb +35 -35
- data/lib/gonebusy/models/create_user_body.rb +89 -89
- data/lib/gonebusy/models/create_user_response.rb +35 -35
- data/lib/gonebusy/models/date_recurs_by_enum.rb +12 -12
- data/lib/gonebusy/models/delete_resource_by_id_response.rb +35 -35
- data/lib/gonebusy/models/delete_schedule_by_id_response.rb +35 -35
- data/lib/gonebusy/models/delete_schedule_time_window_by_id_response.rb +35 -35
- data/lib/gonebusy/models/delete_service_by_id_response.rb +35 -35
- data/lib/gonebusy/models/entities_address_entity.rb +116 -116
- data/lib/gonebusy/models/entities_availability_response.rb +58 -58
- data/lib/gonebusy/models/entities_booking_response.rb +71 -71
- data/lib/gonebusy/models/entities_category_response.rb +98 -98
- data/lib/gonebusy/models/entities_pricing_model_response.rb +89 -89
- data/lib/gonebusy/models/entities_resource_availabilities.rb +49 -49
- data/lib/gonebusy/models/entities_resource_response.rb +107 -107
- data/lib/gonebusy/models/entities_schedule_response.rb +76 -76
- data/lib/gonebusy/models/entities_search_response.rb +54 -54
- data/lib/gonebusy/models/entities_service_response.rb +134 -130
- data/lib/gonebusy/models/entities_slots.rb +44 -45
- data/lib/gonebusy/models/entities_thing_type_response.rb +44 -44
- data/lib/gonebusy/models/entities_time_window_response.rb +134 -135
- data/lib/gonebusy/models/entities_user_response.rb +152 -152
- data/lib/gonebusy/models/frequency_enum.rb +17 -17
- data/lib/gonebusy/models/gender_enum.rb +9 -9
- data/lib/gonebusy/models/get_booking_by_id_response.rb +35 -35
- data/lib/gonebusy/models/get_bookings_response.rb +40 -40
- data/lib/gonebusy/models/get_categories_response.rb +40 -40
- data/lib/gonebusy/models/get_category_by_id_response.rb +35 -35
- data/lib/gonebusy/models/get_pricing_model_by_id_response.rb +35 -35
- data/lib/gonebusy/models/get_pricing_models_response.rb +40 -40
- data/lib/gonebusy/models/get_resource_by_id_response.rb +35 -35
- data/lib/gonebusy/models/get_resource_things_response.rb +40 -40
- data/lib/gonebusy/models/get_resources_response.rb +40 -40
- data/lib/gonebusy/models/get_schedule_by_id_response.rb +35 -35
- data/lib/gonebusy/models/get_schedules_response.rb +40 -40
- data/lib/gonebusy/models/get_service_available_slots_by_id_response.rb +35 -35
- data/lib/gonebusy/models/get_service_by_id_response.rb +35 -35
- data/lib/gonebusy/models/get_services_response.rb +40 -40
- data/lib/gonebusy/models/get_user_by_id_response.rb +35 -35
- data/lib/gonebusy/models/get_users_response.rb +40 -40
- data/lib/gonebusy/models/occurrence_enum.rb +21 -21
- data/lib/gonebusy/models/recurs_by_enum.rb +15 -15
- data/lib/gonebusy/models/search_query_response.rb +35 -35
- data/lib/gonebusy/models/update_booking_by_id_body.rb +116 -0
- data/lib/gonebusy/models/update_booking_by_id_response.rb +35 -35
- data/lib/gonebusy/models/update_pricing_model_by_id_body.rb +62 -62
- data/lib/gonebusy/models/update_pricing_model_by_id_response.rb +35 -35
- data/lib/gonebusy/models/update_resource_by_id_body.rb +71 -71
- data/lib/gonebusy/models/update_resource_by_id_response.rb +35 -35
- data/lib/gonebusy/models/update_schedule_time_window_by_id_body.rb +116 -117
- data/lib/gonebusy/models/update_schedule_time_window_by_id_response.rb +35 -35
- data/lib/gonebusy/models/update_service_by_id_body.rb +98 -98
- data/lib/gonebusy/models/update_service_by_id_response.rb +35 -35
- data/lib/gonebusy/models/update_user_by_id_body.rb +89 -89
- data/lib/gonebusy/models/update_user_by_id_response.rb +35 -35
- data/lib/gonebusy.rb +108 -104
- metadata +53 -17
@@ -1,35 +1,35 @@
|
|
1
|
-
# This file was automatically generated
|
2
|
-
|
3
|
-
module Gonebusy
|
4
|
-
class CreateServiceResponse < BaseModel
|
5
|
-
# TODO: Write general description for this method
|
6
|
-
# @return [EntitiesServiceResponse]
|
7
|
-
attr_accessor :service
|
8
|
-
|
9
|
-
# A mapping from model property names to API property names
|
10
|
-
def self.names
|
11
|
-
if @hash.nil?
|
12
|
-
@hash = {}
|
13
|
-
@hash["service"] = "service"
|
14
|
-
end
|
15
|
-
@hash
|
16
|
-
end
|
17
|
-
|
18
|
-
def initialize(service = nil)
|
19
|
-
@service = service
|
20
|
-
end
|
21
|
-
|
22
|
-
# Creates an instance of the object from a hash
|
23
|
-
def self.from_hash(hash)
|
24
|
-
if hash == nil
|
25
|
-
nil
|
26
|
-
else
|
27
|
-
# Extract variables from the hash
|
28
|
-
service = EntitiesServiceResponse.from_hash(hash[
|
29
|
-
|
30
|
-
# Create object from extracted values
|
31
|
-
CreateServiceResponse.new(service)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
1
|
+
# This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
+
|
3
|
+
module Gonebusy
|
4
|
+
class CreateServiceResponse < BaseModel
|
5
|
+
# TODO: Write general description for this method
|
6
|
+
# @return [EntitiesServiceResponse]
|
7
|
+
attr_accessor :service
|
8
|
+
|
9
|
+
# A mapping from model property names to API property names
|
10
|
+
def self.names
|
11
|
+
if @hash.nil?
|
12
|
+
@hash = {}
|
13
|
+
@hash["service"] = "service"
|
14
|
+
end
|
15
|
+
@hash
|
16
|
+
end
|
17
|
+
|
18
|
+
def initialize(service = nil)
|
19
|
+
@service = service
|
20
|
+
end
|
21
|
+
|
22
|
+
# Creates an instance of the object from a hash
|
23
|
+
def self.from_hash(hash)
|
24
|
+
if hash == nil
|
25
|
+
nil
|
26
|
+
else
|
27
|
+
# Extract variables from the hash
|
28
|
+
service = EntitiesServiceResponse.from_hash(hash['service']) if hash['service']
|
29
|
+
|
30
|
+
# Create object from extracted values
|
31
|
+
CreateServiceResponse.new(service)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -1,89 +1,89 @@
|
|
1
|
-
# This file was automatically generated
|
2
|
-
|
3
|
-
module Gonebusy
|
4
|
-
class CreateUserBody < BaseModel
|
5
|
-
# User's email address
|
6
|
-
# @return [String]
|
7
|
-
attr_accessor :email
|
8
|
-
|
9
|
-
# Optional name for your Business/Organization
|
10
|
-
# @return [String]
|
11
|
-
attr_accessor :business_name
|
12
|
-
|
13
|
-
# Optional website URL
|
14
|
-
# @return [String]
|
15
|
-
attr_accessor :external_url
|
16
|
-
|
17
|
-
# Optional first name
|
18
|
-
# @return [String]
|
19
|
-
attr_accessor :first_name
|
20
|
-
|
21
|
-
# Optional last name
|
22
|
-
# @return [String]
|
23
|
-
attr_accessor :last_name
|
24
|
-
|
25
|
-
# Optional vanity url - ex: www.gonebusy.com/[permalink] - must be unique
|
26
|
-
# @return [String]
|
27
|
-
attr_accessor :permalink
|
28
|
-
|
29
|
-
# Optional timezone
|
30
|
-
# @return [String]
|
31
|
-
attr_accessor :timezone
|
32
|
-
|
33
|
-
# A mapping from model property names to API property names
|
34
|
-
def self.names
|
35
|
-
if @hash.nil?
|
36
|
-
@hash = {}
|
37
|
-
@hash["email"] = "email"
|
38
|
-
@hash["business_name"] = "business_name"
|
39
|
-
@hash["external_url"] = "external_url"
|
40
|
-
@hash["first_name"] = "first_name"
|
41
|
-
@hash["last_name"] = "last_name"
|
42
|
-
@hash["permalink"] = "permalink"
|
43
|
-
@hash["timezone"] = "timezone"
|
44
|
-
end
|
45
|
-
@hash
|
46
|
-
end
|
47
|
-
|
48
|
-
def initialize(email = nil,
|
49
|
-
business_name = nil,
|
50
|
-
external_url = nil,
|
51
|
-
first_name = nil,
|
52
|
-
last_name = nil,
|
53
|
-
permalink = nil,
|
54
|
-
timezone = nil)
|
55
|
-
@email = email
|
56
|
-
@business_name = business_name
|
57
|
-
@external_url = external_url
|
58
|
-
@first_name = first_name
|
59
|
-
@last_name = last_name
|
60
|
-
@permalink = permalink
|
61
|
-
@timezone = timezone
|
62
|
-
end
|
63
|
-
|
64
|
-
# Creates an instance of the object from a hash
|
65
|
-
def self.from_hash(hash)
|
66
|
-
if hash == nil
|
67
|
-
nil
|
68
|
-
else
|
69
|
-
# Extract variables from the hash
|
70
|
-
email = hash[
|
71
|
-
business_name = hash[
|
72
|
-
external_url = hash[
|
73
|
-
first_name = hash[
|
74
|
-
last_name = hash[
|
75
|
-
permalink = hash[
|
76
|
-
timezone = hash[
|
77
|
-
|
78
|
-
# Create object from extracted values
|
79
|
-
CreateUserBody.new(email,
|
80
|
-
business_name,
|
81
|
-
external_url,
|
82
|
-
first_name,
|
83
|
-
last_name,
|
84
|
-
permalink,
|
85
|
-
timezone)
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
1
|
+
# This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
+
|
3
|
+
module Gonebusy
|
4
|
+
class CreateUserBody < BaseModel
|
5
|
+
# User's email address
|
6
|
+
# @return [String]
|
7
|
+
attr_accessor :email
|
8
|
+
|
9
|
+
# Optional name for your Business/Organization
|
10
|
+
# @return [String]
|
11
|
+
attr_accessor :business_name
|
12
|
+
|
13
|
+
# Optional website URL
|
14
|
+
# @return [String]
|
15
|
+
attr_accessor :external_url
|
16
|
+
|
17
|
+
# Optional first name
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :first_name
|
20
|
+
|
21
|
+
# Optional last name
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :last_name
|
24
|
+
|
25
|
+
# Optional vanity url - ex: www.gonebusy.com/[permalink] - must be unique
|
26
|
+
# @return [String]
|
27
|
+
attr_accessor :permalink
|
28
|
+
|
29
|
+
# Optional timezone
|
30
|
+
# @return [String]
|
31
|
+
attr_accessor :timezone
|
32
|
+
|
33
|
+
# A mapping from model property names to API property names
|
34
|
+
def self.names
|
35
|
+
if @hash.nil?
|
36
|
+
@hash = {}
|
37
|
+
@hash["email"] = "email"
|
38
|
+
@hash["business_name"] = "business_name"
|
39
|
+
@hash["external_url"] = "external_url"
|
40
|
+
@hash["first_name"] = "first_name"
|
41
|
+
@hash["last_name"] = "last_name"
|
42
|
+
@hash["permalink"] = "permalink"
|
43
|
+
@hash["timezone"] = "timezone"
|
44
|
+
end
|
45
|
+
@hash
|
46
|
+
end
|
47
|
+
|
48
|
+
def initialize(email = nil,
|
49
|
+
business_name = nil,
|
50
|
+
external_url = nil,
|
51
|
+
first_name = nil,
|
52
|
+
last_name = nil,
|
53
|
+
permalink = nil,
|
54
|
+
timezone = nil)
|
55
|
+
@email = email
|
56
|
+
@business_name = business_name
|
57
|
+
@external_url = external_url
|
58
|
+
@first_name = first_name
|
59
|
+
@last_name = last_name
|
60
|
+
@permalink = permalink
|
61
|
+
@timezone = timezone
|
62
|
+
end
|
63
|
+
|
64
|
+
# Creates an instance of the object from a hash
|
65
|
+
def self.from_hash(hash)
|
66
|
+
if hash == nil
|
67
|
+
nil
|
68
|
+
else
|
69
|
+
# Extract variables from the hash
|
70
|
+
email = hash['email']
|
71
|
+
business_name = hash['business_name']
|
72
|
+
external_url = hash['external_url']
|
73
|
+
first_name = hash['first_name']
|
74
|
+
last_name = hash['last_name']
|
75
|
+
permalink = hash['permalink']
|
76
|
+
timezone = hash['timezone']
|
77
|
+
|
78
|
+
# Create object from extracted values
|
79
|
+
CreateUserBody.new(email,
|
80
|
+
business_name,
|
81
|
+
external_url,
|
82
|
+
first_name,
|
83
|
+
last_name,
|
84
|
+
permalink,
|
85
|
+
timezone)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -1,35 +1,35 @@
|
|
1
|
-
# This file was automatically generated
|
2
|
-
|
3
|
-
module Gonebusy
|
4
|
-
class CreateUserResponse < BaseModel
|
5
|
-
# TODO: Write general description for this method
|
6
|
-
# @return [EntitiesUserResponse]
|
7
|
-
attr_accessor :user
|
8
|
-
|
9
|
-
# A mapping from model property names to API property names
|
10
|
-
def self.names
|
11
|
-
if @hash.nil?
|
12
|
-
@hash = {}
|
13
|
-
@hash["user"] = "user"
|
14
|
-
end
|
15
|
-
@hash
|
16
|
-
end
|
17
|
-
|
18
|
-
def initialize(user = nil)
|
19
|
-
@user = user
|
20
|
-
end
|
21
|
-
|
22
|
-
# Creates an instance of the object from a hash
|
23
|
-
def self.from_hash(hash)
|
24
|
-
if hash == nil
|
25
|
-
nil
|
26
|
-
else
|
27
|
-
# Extract variables from the hash
|
28
|
-
user = EntitiesUserResponse.from_hash(hash[
|
29
|
-
|
30
|
-
# Create object from extracted values
|
31
|
-
CreateUserResponse.new(user)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
1
|
+
# This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
+
|
3
|
+
module Gonebusy
|
4
|
+
class CreateUserResponse < BaseModel
|
5
|
+
# TODO: Write general description for this method
|
6
|
+
# @return [EntitiesUserResponse]
|
7
|
+
attr_accessor :user
|
8
|
+
|
9
|
+
# A mapping from model property names to API property names
|
10
|
+
def self.names
|
11
|
+
if @hash.nil?
|
12
|
+
@hash = {}
|
13
|
+
@hash["user"] = "user"
|
14
|
+
end
|
15
|
+
@hash
|
16
|
+
end
|
17
|
+
|
18
|
+
def initialize(user = nil)
|
19
|
+
@user = user
|
20
|
+
end
|
21
|
+
|
22
|
+
# Creates an instance of the object from a hash
|
23
|
+
def self.from_hash(hash)
|
24
|
+
if hash == nil
|
25
|
+
nil
|
26
|
+
else
|
27
|
+
# Extract variables from the hash
|
28
|
+
user = EntitiesUserResponse.from_hash(hash['user']) if hash['user']
|
29
|
+
|
30
|
+
# Create object from extracted values
|
31
|
+
CreateUserResponse.new(user)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
|
-
# This file was automatically generated
|
2
|
-
|
3
|
-
module Gonebusy
|
4
|
-
class DateRecursByEnum
|
5
|
-
# TODO: Write general description for DAY_IN_MONTH
|
6
|
-
# TODO: Write general description for DAY_IN_YEAR
|
7
|
-
# TODO: Write general description for DATE_IN_MONTH
|
8
|
-
# TODO: Write general description for DATE_IN_YEAR
|
9
|
-
# TODO: Write general description for DAY_IN_QUARTER
|
10
|
-
# TODO: Write general description for DATE_IN_QUARTER
|
11
|
-
DATE_RECURS_BY_ENUM = [DAY_IN_MONTH = 'day_in_month', DAY_IN_YEAR = 'day_in_year', DATE_IN_MONTH = 'date_in_month', DATE_IN_YEAR = 'date_in_year', DAY_IN_QUARTER = 'day_in_quarter', DATE_IN_QUARTER = 'date_in_quarter']
|
12
|
-
end
|
1
|
+
# This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
+
|
3
|
+
module Gonebusy
|
4
|
+
class DateRecursByEnum
|
5
|
+
# TODO: Write general description for DAY_IN_MONTH
|
6
|
+
# TODO: Write general description for DAY_IN_YEAR
|
7
|
+
# TODO: Write general description for DATE_IN_MONTH
|
8
|
+
# TODO: Write general description for DATE_IN_YEAR
|
9
|
+
# TODO: Write general description for DAY_IN_QUARTER
|
10
|
+
# TODO: Write general description for DATE_IN_QUARTER
|
11
|
+
DATE_RECURS_BY_ENUM = [DAY_IN_MONTH = 'day_in_month', DAY_IN_YEAR = 'day_in_year', DATE_IN_MONTH = 'date_in_month', DATE_IN_YEAR = 'date_in_year', DAY_IN_QUARTER = 'day_in_quarter', DATE_IN_QUARTER = 'date_in_quarter']
|
12
|
+
end
|
13
13
|
end
|
@@ -1,35 +1,35 @@
|
|
1
|
-
# This file was automatically generated
|
2
|
-
|
3
|
-
module Gonebusy
|
4
|
-
class DeleteResourceByIdResponse < BaseModel
|
5
|
-
# TODO: Write general description for this method
|
6
|
-
# @return [EntitiesResourceResponse]
|
7
|
-
attr_accessor :resource
|
8
|
-
|
9
|
-
# A mapping from model property names to API property names
|
10
|
-
def self.names
|
11
|
-
if @hash.nil?
|
12
|
-
@hash = {}
|
13
|
-
@hash["resource"] = "resource"
|
14
|
-
end
|
15
|
-
@hash
|
16
|
-
end
|
17
|
-
|
18
|
-
def initialize(resource = nil)
|
19
|
-
@resource = resource
|
20
|
-
end
|
21
|
-
|
22
|
-
# Creates an instance of the object from a hash
|
23
|
-
def self.from_hash(hash)
|
24
|
-
if hash == nil
|
25
|
-
nil
|
26
|
-
else
|
27
|
-
# Extract variables from the hash
|
28
|
-
resource = EntitiesResourceResponse.from_hash(hash[
|
29
|
-
|
30
|
-
# Create object from extracted values
|
31
|
-
DeleteResourceByIdResponse.new(resource)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
1
|
+
# This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
+
|
3
|
+
module Gonebusy
|
4
|
+
class DeleteResourceByIdResponse < BaseModel
|
5
|
+
# TODO: Write general description for this method
|
6
|
+
# @return [EntitiesResourceResponse]
|
7
|
+
attr_accessor :resource
|
8
|
+
|
9
|
+
# A mapping from model property names to API property names
|
10
|
+
def self.names
|
11
|
+
if @hash.nil?
|
12
|
+
@hash = {}
|
13
|
+
@hash["resource"] = "resource"
|
14
|
+
end
|
15
|
+
@hash
|
16
|
+
end
|
17
|
+
|
18
|
+
def initialize(resource = nil)
|
19
|
+
@resource = resource
|
20
|
+
end
|
21
|
+
|
22
|
+
# Creates an instance of the object from a hash
|
23
|
+
def self.from_hash(hash)
|
24
|
+
if hash == nil
|
25
|
+
nil
|
26
|
+
else
|
27
|
+
# Extract variables from the hash
|
28
|
+
resource = EntitiesResourceResponse.from_hash(hash['resource']) if hash['resource']
|
29
|
+
|
30
|
+
# Create object from extracted values
|
31
|
+
DeleteResourceByIdResponse.new(resource)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -1,35 +1,35 @@
|
|
1
|
-
# This file was automatically generated
|
2
|
-
|
3
|
-
module Gonebusy
|
4
|
-
class DeleteScheduleByIdResponse < BaseModel
|
5
|
-
# TODO: Write general description for this method
|
6
|
-
# @return [EntitiesScheduleResponse]
|
7
|
-
attr_accessor :schedule
|
8
|
-
|
9
|
-
# A mapping from model property names to API property names
|
10
|
-
def self.names
|
11
|
-
if @hash.nil?
|
12
|
-
@hash = {}
|
13
|
-
@hash["schedule"] = "schedule"
|
14
|
-
end
|
15
|
-
@hash
|
16
|
-
end
|
17
|
-
|
18
|
-
def initialize(schedule = nil)
|
19
|
-
@schedule = schedule
|
20
|
-
end
|
21
|
-
|
22
|
-
# Creates an instance of the object from a hash
|
23
|
-
def self.from_hash(hash)
|
24
|
-
if hash == nil
|
25
|
-
nil
|
26
|
-
else
|
27
|
-
# Extract variables from the hash
|
28
|
-
schedule = EntitiesScheduleResponse.from_hash(hash[
|
29
|
-
|
30
|
-
# Create object from extracted values
|
31
|
-
DeleteScheduleByIdResponse.new(schedule)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
1
|
+
# This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
+
|
3
|
+
module Gonebusy
|
4
|
+
class DeleteScheduleByIdResponse < BaseModel
|
5
|
+
# TODO: Write general description for this method
|
6
|
+
# @return [EntitiesScheduleResponse]
|
7
|
+
attr_accessor :schedule
|
8
|
+
|
9
|
+
# A mapping from model property names to API property names
|
10
|
+
def self.names
|
11
|
+
if @hash.nil?
|
12
|
+
@hash = {}
|
13
|
+
@hash["schedule"] = "schedule"
|
14
|
+
end
|
15
|
+
@hash
|
16
|
+
end
|
17
|
+
|
18
|
+
def initialize(schedule = nil)
|
19
|
+
@schedule = schedule
|
20
|
+
end
|
21
|
+
|
22
|
+
# Creates an instance of the object from a hash
|
23
|
+
def self.from_hash(hash)
|
24
|
+
if hash == nil
|
25
|
+
nil
|
26
|
+
else
|
27
|
+
# Extract variables from the hash
|
28
|
+
schedule = EntitiesScheduleResponse.from_hash(hash['schedule']) if hash['schedule']
|
29
|
+
|
30
|
+
# Create object from extracted values
|
31
|
+
DeleteScheduleByIdResponse.new(schedule)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|