gonebusy-ruby-client 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +1963 -0
  4. data/lib/gonebusy/api_helper.rb +149 -0
  5. data/lib/gonebusy/configuration.rb +16 -0
  6. data/lib/gonebusy/controllers/base_controller.rb +45 -0
  7. data/lib/gonebusy/controllers/bookings_controller.rb +298 -0
  8. data/lib/gonebusy/controllers/categories_controller.rb +180 -0
  9. data/lib/gonebusy/controllers/pricing_models_controller.rb +241 -0
  10. data/lib/gonebusy/controllers/resources_controller.rb +355 -0
  11. data/lib/gonebusy/controllers/schedules_controller.rb +426 -0
  12. data/lib/gonebusy/controllers/search_controller.rb +64 -0
  13. data/lib/gonebusy/controllers/services_controller.rb +367 -0
  14. data/lib/gonebusy/controllers/users_controller.rb +288 -0
  15. data/lib/gonebusy/exceptions/api_exception.rb +16 -0
  16. data/lib/gonebusy/exceptions/entities_error_exception.rb +27 -0
  17. data/lib/gonebusy/gonebusy_client.rb +58 -0
  18. data/lib/gonebusy/http/auth/custom_auth.rb +16 -0
  19. data/lib/gonebusy/http/faraday_client.rb +41 -0
  20. data/lib/gonebusy/http/http_call_back.rb +17 -0
  21. data/lib/gonebusy/http/http_client.rb +82 -0
  22. data/lib/gonebusy/http/http_context.rb +15 -0
  23. data/lib/gonebusy/http/http_method_enum.rb +7 -0
  24. data/lib/gonebusy/http/http_request.rb +44 -0
  25. data/lib/gonebusy/http/http_response.rb +19 -0
  26. data/lib/gonebusy/models/base_model.rb +32 -0
  27. data/lib/gonebusy/models/cancel_booking_by_id_response.rb +35 -0
  28. data/lib/gonebusy/models/create_booking_body.rb +80 -0
  29. data/lib/gonebusy/models/create_booking_response.rb +35 -0
  30. data/lib/gonebusy/models/create_category_body.rb +71 -0
  31. data/lib/gonebusy/models/create_category_response.rb +35 -0
  32. data/lib/gonebusy/models/create_pricing_model_body.rb +80 -0
  33. data/lib/gonebusy/models/create_pricing_model_response.rb +35 -0
  34. data/lib/gonebusy/models/create_resource_body.rb +89 -0
  35. data/lib/gonebusy/models/create_resource_response.rb +35 -0
  36. data/lib/gonebusy/models/create_schedule_body.rb +144 -0
  37. data/lib/gonebusy/models/create_schedule_response.rb +35 -0
  38. data/lib/gonebusy/models/create_schedule_time_window_body.rb +117 -0
  39. data/lib/gonebusy/models/create_schedule_time_window_response.rb +35 -0
  40. data/lib/gonebusy/models/create_service_body.rb +98 -0
  41. data/lib/gonebusy/models/create_service_response.rb +35 -0
  42. data/lib/gonebusy/models/create_user_body.rb +89 -0
  43. data/lib/gonebusy/models/create_user_response.rb +35 -0
  44. data/lib/gonebusy/models/date_recurs_by_enum.rb +13 -0
  45. data/lib/gonebusy/models/delete_resource_by_id_response.rb +35 -0
  46. data/lib/gonebusy/models/delete_schedule_by_id_response.rb +35 -0
  47. data/lib/gonebusy/models/delete_schedule_time_window_by_id_response.rb +35 -0
  48. data/lib/gonebusy/models/delete_service_by_id_response.rb +35 -0
  49. data/lib/gonebusy/models/entities_address_entity.rb +116 -0
  50. data/lib/gonebusy/models/entities_availability_response.rb +58 -0
  51. data/lib/gonebusy/models/entities_booking_response.rb +71 -0
  52. data/lib/gonebusy/models/entities_category_response.rb +98 -0
  53. data/lib/gonebusy/models/entities_pricing_model_response.rb +89 -0
  54. data/lib/gonebusy/models/entities_resource_availabilities.rb +49 -0
  55. data/lib/gonebusy/models/entities_resource_response.rb +98 -0
  56. data/lib/gonebusy/models/entities_schedule_response.rb +76 -0
  57. data/lib/gonebusy/models/entities_search_response.rb +54 -0
  58. data/lib/gonebusy/models/entities_service_response.rb +116 -0
  59. data/lib/gonebusy/models/entities_slots.rb +45 -0
  60. data/lib/gonebusy/models/entities_thing_type_response.rb +44 -0
  61. data/lib/gonebusy/models/entities_time_window_response.rb +135 -0
  62. data/lib/gonebusy/models/entities_user_response.rb +152 -0
  63. data/lib/gonebusy/models/frequency_enum.rb +18 -0
  64. data/lib/gonebusy/models/gender_enum.rb +10 -0
  65. data/lib/gonebusy/models/get_booking_by_id_response.rb +35 -0
  66. data/lib/gonebusy/models/get_bookings_response.rb +40 -0
  67. data/lib/gonebusy/models/get_categories_response.rb +40 -0
  68. data/lib/gonebusy/models/get_category_by_id_response.rb +35 -0
  69. data/lib/gonebusy/models/get_pricing_model_by_id_response.rb +35 -0
  70. data/lib/gonebusy/models/get_pricing_models_response.rb +40 -0
  71. data/lib/gonebusy/models/get_resource_by_id_response.rb +35 -0
  72. data/lib/gonebusy/models/get_resource_things_response.rb +40 -0
  73. data/lib/gonebusy/models/get_resources_response.rb +40 -0
  74. data/lib/gonebusy/models/get_schedule_by_id_response.rb +35 -0
  75. data/lib/gonebusy/models/get_schedules_response.rb +40 -0
  76. data/lib/gonebusy/models/get_service_available_slots_by_id_response.rb +35 -0
  77. data/lib/gonebusy/models/get_service_by_id_response.rb +35 -0
  78. data/lib/gonebusy/models/get_services_response.rb +40 -0
  79. data/lib/gonebusy/models/get_user_by_id_response.rb +35 -0
  80. data/lib/gonebusy/models/get_users_pros_response.rb +40 -0
  81. data/lib/gonebusy/models/get_users_response.rb +40 -0
  82. data/lib/gonebusy/models/occurrence_enum.rb +22 -0
  83. data/lib/gonebusy/models/recurs_by_enum.rb +16 -0
  84. data/lib/gonebusy/models/search_query_response.rb +35 -0
  85. data/lib/gonebusy/models/update_booking_by_id_response.rb +35 -0
  86. data/lib/gonebusy/models/update_pricing_model_by_id_body.rb +62 -0
  87. data/lib/gonebusy/models/update_pricing_model_by_id_response.rb +35 -0
  88. data/lib/gonebusy/models/update_resource_by_id_body.rb +71 -0
  89. data/lib/gonebusy/models/update_resource_by_id_response.rb +35 -0
  90. data/lib/gonebusy/models/update_schedule_time_window_by_id_body.rb +117 -0
  91. data/lib/gonebusy/models/update_schedule_time_window_by_id_response.rb +35 -0
  92. data/lib/gonebusy/models/update_service_by_id_body.rb +89 -0
  93. data/lib/gonebusy/models/update_service_by_id_response.rb +35 -0
  94. data/lib/gonebusy/models/update_user_by_id_body.rb +89 -0
  95. data/lib/gonebusy/models/update_user_by_id_response.rb +35 -0
  96. data/lib/gonebusy.rb +105 -0
  97. metadata +186 -0
metadata ADDED
@@ -0,0 +1,186 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gonebusy-ruby-client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Alex Agranov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.10.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.10.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: certifi
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2016.9'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 2016.09.26
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '2016.9'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2016.09.26
47
+ - !ruby/object:Gem::Dependency
48
+ name: test-unit
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: 3.1.5
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: 3.1.5
61
+ description: This is a Ruby client for communicating with the full GoneBusy API
62
+ email: alex@gonebusy.com
63
+ executables: []
64
+ extensions: []
65
+ extra_rdoc_files: []
66
+ files:
67
+ - LICENSE
68
+ - README.md
69
+ - lib/gonebusy.rb
70
+ - lib/gonebusy/api_helper.rb
71
+ - lib/gonebusy/configuration.rb
72
+ - lib/gonebusy/controllers/base_controller.rb
73
+ - lib/gonebusy/controllers/bookings_controller.rb
74
+ - lib/gonebusy/controllers/categories_controller.rb
75
+ - lib/gonebusy/controllers/pricing_models_controller.rb
76
+ - lib/gonebusy/controllers/resources_controller.rb
77
+ - lib/gonebusy/controllers/schedules_controller.rb
78
+ - lib/gonebusy/controllers/search_controller.rb
79
+ - lib/gonebusy/controllers/services_controller.rb
80
+ - lib/gonebusy/controllers/users_controller.rb
81
+ - lib/gonebusy/exceptions/api_exception.rb
82
+ - lib/gonebusy/exceptions/entities_error_exception.rb
83
+ - lib/gonebusy/gonebusy_client.rb
84
+ - lib/gonebusy/http/auth/custom_auth.rb
85
+ - lib/gonebusy/http/faraday_client.rb
86
+ - lib/gonebusy/http/http_call_back.rb
87
+ - lib/gonebusy/http/http_client.rb
88
+ - lib/gonebusy/http/http_context.rb
89
+ - lib/gonebusy/http/http_method_enum.rb
90
+ - lib/gonebusy/http/http_request.rb
91
+ - lib/gonebusy/http/http_response.rb
92
+ - lib/gonebusy/models/base_model.rb
93
+ - lib/gonebusy/models/cancel_booking_by_id_response.rb
94
+ - lib/gonebusy/models/create_booking_body.rb
95
+ - lib/gonebusy/models/create_booking_response.rb
96
+ - lib/gonebusy/models/create_category_body.rb
97
+ - lib/gonebusy/models/create_category_response.rb
98
+ - lib/gonebusy/models/create_pricing_model_body.rb
99
+ - lib/gonebusy/models/create_pricing_model_response.rb
100
+ - lib/gonebusy/models/create_resource_body.rb
101
+ - lib/gonebusy/models/create_resource_response.rb
102
+ - lib/gonebusy/models/create_schedule_body.rb
103
+ - lib/gonebusy/models/create_schedule_response.rb
104
+ - lib/gonebusy/models/create_schedule_time_window_body.rb
105
+ - lib/gonebusy/models/create_schedule_time_window_response.rb
106
+ - lib/gonebusy/models/create_service_body.rb
107
+ - lib/gonebusy/models/create_service_response.rb
108
+ - lib/gonebusy/models/create_user_body.rb
109
+ - lib/gonebusy/models/create_user_response.rb
110
+ - lib/gonebusy/models/date_recurs_by_enum.rb
111
+ - lib/gonebusy/models/delete_resource_by_id_response.rb
112
+ - lib/gonebusy/models/delete_schedule_by_id_response.rb
113
+ - lib/gonebusy/models/delete_schedule_time_window_by_id_response.rb
114
+ - lib/gonebusy/models/delete_service_by_id_response.rb
115
+ - lib/gonebusy/models/entities_address_entity.rb
116
+ - lib/gonebusy/models/entities_availability_response.rb
117
+ - lib/gonebusy/models/entities_booking_response.rb
118
+ - lib/gonebusy/models/entities_category_response.rb
119
+ - lib/gonebusy/models/entities_pricing_model_response.rb
120
+ - lib/gonebusy/models/entities_resource_availabilities.rb
121
+ - lib/gonebusy/models/entities_resource_response.rb
122
+ - lib/gonebusy/models/entities_schedule_response.rb
123
+ - lib/gonebusy/models/entities_search_response.rb
124
+ - lib/gonebusy/models/entities_service_response.rb
125
+ - lib/gonebusy/models/entities_slots.rb
126
+ - lib/gonebusy/models/entities_thing_type_response.rb
127
+ - lib/gonebusy/models/entities_time_window_response.rb
128
+ - lib/gonebusy/models/entities_user_response.rb
129
+ - lib/gonebusy/models/frequency_enum.rb
130
+ - lib/gonebusy/models/gender_enum.rb
131
+ - lib/gonebusy/models/get_booking_by_id_response.rb
132
+ - lib/gonebusy/models/get_bookings_response.rb
133
+ - lib/gonebusy/models/get_categories_response.rb
134
+ - lib/gonebusy/models/get_category_by_id_response.rb
135
+ - lib/gonebusy/models/get_pricing_model_by_id_response.rb
136
+ - lib/gonebusy/models/get_pricing_models_response.rb
137
+ - lib/gonebusy/models/get_resource_by_id_response.rb
138
+ - lib/gonebusy/models/get_resource_things_response.rb
139
+ - lib/gonebusy/models/get_resources_response.rb
140
+ - lib/gonebusy/models/get_schedule_by_id_response.rb
141
+ - lib/gonebusy/models/get_schedules_response.rb
142
+ - lib/gonebusy/models/get_service_available_slots_by_id_response.rb
143
+ - lib/gonebusy/models/get_service_by_id_response.rb
144
+ - lib/gonebusy/models/get_services_response.rb
145
+ - lib/gonebusy/models/get_user_by_id_response.rb
146
+ - lib/gonebusy/models/get_users_pros_response.rb
147
+ - lib/gonebusy/models/get_users_response.rb
148
+ - lib/gonebusy/models/occurrence_enum.rb
149
+ - lib/gonebusy/models/recurs_by_enum.rb
150
+ - lib/gonebusy/models/search_query_response.rb
151
+ - lib/gonebusy/models/update_booking_by_id_response.rb
152
+ - lib/gonebusy/models/update_pricing_model_by_id_body.rb
153
+ - lib/gonebusy/models/update_pricing_model_by_id_response.rb
154
+ - lib/gonebusy/models/update_resource_by_id_body.rb
155
+ - lib/gonebusy/models/update_resource_by_id_response.rb
156
+ - lib/gonebusy/models/update_schedule_time_window_by_id_body.rb
157
+ - lib/gonebusy/models/update_schedule_time_window_by_id_response.rb
158
+ - lib/gonebusy/models/update_service_by_id_body.rb
159
+ - lib/gonebusy/models/update_service_by_id_response.rb
160
+ - lib/gonebusy/models/update_user_by_id_body.rb
161
+ - lib/gonebusy/models/update_user_by_id_response.rb
162
+ homepage: http://www.gonebusy.com
163
+ licenses:
164
+ - MIT
165
+ metadata: {}
166
+ post_install_message:
167
+ rdoc_options: []
168
+ require_paths:
169
+ - lib
170
+ required_ruby_version: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: '2.0'
175
+ required_rubygems_version: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ requirements: []
181
+ rubyforge_project:
182
+ rubygems_version: 2.4.8
183
+ signing_key:
184
+ specification_version: 4
185
+ summary: GoneBusy API Ruby client
186
+ test_files: []