domoscio_rails 0.4.23 → 0.4.25

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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/domoscio_rails/data/account.rb +7 -0
  3. data/lib/domoscio_rails/data/content.rb +2 -1
  4. data/lib/domoscio_rails/data/device.rb +2 -1
  5. data/lib/domoscio_rails/data/event.rb +2 -1
  6. data/lib/domoscio_rails/data/instance_parameter.rb +2 -1
  7. data/lib/domoscio_rails/data/learning_session.rb +2 -1
  8. data/lib/domoscio_rails/data/learning_session_knowledge_node.rb +2 -1
  9. data/lib/domoscio_rails/data/learning_session_recommendation.rb +2 -1
  10. data/lib/domoscio_rails/data/question.rb +2 -1
  11. data/lib/domoscio_rails/data/recommendation.rb +2 -1
  12. data/lib/domoscio_rails/data/role.rb +12 -0
  13. data/lib/domoscio_rails/data/scorm.rb +2 -1
  14. data/lib/domoscio_rails/data/student.rb +2 -1
  15. data/lib/domoscio_rails/data/student_group.rb +9 -1
  16. data/lib/domoscio_rails/data/supervisor.rb +12 -0
  17. data/lib/domoscio_rails/data/user.rb +22 -1
  18. data/lib/domoscio_rails/http_calls.rb +6 -17
  19. data/lib/domoscio_rails/knowledge/knowledge_edge.rb +2 -1
  20. data/lib/domoscio_rails/knowledge/knowledge_graph.rb +2 -1
  21. data/lib/domoscio_rails/knowledge/knowledge_graph_node.rb +2 -1
  22. data/lib/domoscio_rails/knowledge/knowledge_graph_scale.rb +2 -1
  23. data/lib/domoscio_rails/knowledge/knowledge_node.rb +2 -1
  24. data/lib/domoscio_rails/knowledge/knowledge_node_content.rb +2 -1
  25. data/lib/domoscio_rails/knowledge/knowledge_node_student.rb +2 -1
  26. data/lib/domoscio_rails/knowledge/scale.rb +2 -1
  27. data/lib/domoscio_rails/objective/learning_program.rb +2 -1
  28. data/lib/domoscio_rails/objective/learning_program_student.rb +2 -1
  29. data/lib/domoscio_rails/objective/objective.rb +2 -1
  30. data/lib/domoscio_rails/objective/objective_knowledge_node.rb +2 -1
  31. data/lib/domoscio_rails/objective/objective_knowledge_node_student.rb +2 -1
  32. data/lib/domoscio_rails/objective/objective_student.rb +2 -1
  33. data/lib/domoscio_rails/objective/subscription.rb +2 -1
  34. data/lib/domoscio_rails/resource.rb +20 -3
  35. data/lib/domoscio_rails/tag/tag.rb +2 -1
  36. data/lib/domoscio_rails/tag/tag_edge.rb +2 -1
  37. data/lib/domoscio_rails/tag/tag_set.rb +2 -1
  38. data/lib/domoscio_rails/tag/tagging.rb +2 -1
  39. data/lib/domoscio_rails/utils/analytic.rb +2 -1
  40. data/lib/domoscio_rails/utils/export.rb +2 -1
  41. data/lib/domoscio_rails/utils/export_request.rb +2 -1
  42. data/lib/domoscio_rails/utils/gameplay_util.rb +2 -1
  43. data/lib/domoscio_rails/utils/kpi_log.rb +2 -1
  44. data/lib/domoscio_rails/utils/lxp.rb +2 -1
  45. data/lib/domoscio_rails/utils/recommendation_util.rb +2 -1
  46. data/lib/domoscio_rails/utils/review_util.rb +2 -1
  47. data/lib/domoscio_rails/utils/stats_util.rb +2 -1
  48. data/lib/domoscio_rails/version.rb +1 -1
  49. data/lib/domoscio_rails.rb +3 -1
  50. metadata +8 -6
  51. data/lib/domoscio_rails/data/instance.rb +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1730c400a6f2f3f5474d6cd773fffa62dcae23169896a9d20c1a1eef579773e1
4
- data.tar.gz: 18e1d5603c686c00fe49ddb778bb7c80cfab4aacf6c279592b567bfbd19252d6
3
+ metadata.gz: 1f390c6adf767afcbb060c4af36e7e36c93d655fcc40dc2547286005c152bd7a
4
+ data.tar.gz: bbdd3cd19035271ea2e876101c002f2f944adab132b2b50b3e20fad4d52df8b8
5
5
  SHA512:
6
- metadata.gz: 5ad5876deb0666a5d57e9ff25c9674f361583b4f1a595fe1b165e03b514890ee01d9c7ace22a143cc66faac67691c38c0a48cd6d4e79eb6bafa1faeb3e7f3fbf
7
- data.tar.gz: 3d870ac7ed0f7dba6ad47f537e17f7b3fd53f1333da307e3df7417b32b35a6656bbfa7ac5656b44bd3158b5104d02a3ee16a87cf475eb6d0a8e536e06ade5eba
6
+ metadata.gz: 3b2c8a9e0ab165c87b7d8595456182e3e4467eec5968efe379405725c0a76752021b2eeedc0a9ba62ab11d1ddd6f6dea135d8e73f6add106d42df622ebe6378a
7
+ data.tar.gz: 6de9fe472da15566827c197999e378c09c7c3fb5a5f0c4807e329763f84473c789ef1021de6ccdd7b63d778b91218b455cf3b2aa86f44f2c68694983d932b95c
@@ -0,0 +1,7 @@
1
+ module DomoscioRails
2
+ class Account
3
+ include DomoscioRails::Resource
4
+ include DomoscioRails::HTTPCalls::Fetch
5
+ include DomoscioRails::HTTPCalls::Update
6
+ end
7
+ end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Content < Resource
2
+ class Content
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Update
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Device < Resource
2
+ class Device
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Update
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Event < Resource
2
+ class Event
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Update
5
6
  include DomoscioRails::HTTPCalls::Fetch
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Instance < Resource
2
+ class InstanceParameter
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Fetch
4
5
  include DomoscioRails::HTTPCalls::Update
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class LearningSession < Resource
2
+ class LearningSession
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class LearningSessionKnowledgeNode < Resource
2
+ class LearningSessionKnowledgeNode
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Fetch
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class LearningSessionRecommendation < Resource
2
+ class LearningSessionRecommendation
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Fetch
4
5
  include DomoscioRails::HTTPCalls::Destroy
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Question < Resource
2
+ class Question
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Fetch
4
5
  include DomoscioRails::HTTPCalls::Update
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Recommendation < Resource
2
+ class Recommendation
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Fetch
4
5
  include DomoscioRails::HTTPCalls::Destroy
5
6
  end
@@ -0,0 +1,12 @@
1
+ module DomoscioRails
2
+ class Role
3
+ include DomoscioRails::Resource
4
+
5
+ class User
6
+ include DomoscioRails::Resource
7
+ include DomoscioRails::HTTPCalls::Create
8
+ include DomoscioRails::HTTPCalls::Fetch
9
+ include DomoscioRails::HTTPCalls::Destroy
10
+ end
11
+ end
12
+ end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Scorm < Resource
2
+ class Scorm
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Student < Resource
2
+ class Student
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,8 +1,16 @@
1
1
  module DomoscioRails
2
- class StudentGroup < Resource
2
+ class StudentGroup
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
6
7
  include DomoscioRails::HTTPCalls::Update
8
+
9
+ class User
10
+ include DomoscioRails::Resource
11
+ include DomoscioRails::HTTPCalls::Create
12
+ include DomoscioRails::HTTPCalls::Fetch
13
+ include DomoscioRails::HTTPCalls::Destroy
14
+ end
7
15
  end
8
16
  end
@@ -0,0 +1,12 @@
1
+ module DomoscioRails
2
+ class Supervisor
3
+ include DomoscioRails::Resource
4
+
5
+ class LearningProgram
6
+ include DomoscioRails::Resource
7
+ include DomoscioRails::HTTPCalls::Create
8
+ include DomoscioRails::HTTPCalls::Fetch
9
+ include DomoscioRails::HTTPCalls::Destroy
10
+ end
11
+ end
12
+ end
@@ -1,8 +1,29 @@
1
1
  module DomoscioRails
2
- class User < Resource
2
+ class User
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
6
7
  include DomoscioRails::HTTPCalls::Update
8
+
9
+ class UserParameter
10
+ include DomoscioRails::Resource
11
+ include DomoscioRails::HTTPCalls::Fetch
12
+ include DomoscioRails::HTTPCalls::Update
13
+ end
14
+
15
+ class Role
16
+ include DomoscioRails::Resource
17
+ include DomoscioRails::HTTPCalls::Create
18
+ include DomoscioRails::HTTPCalls::Fetch
19
+ include DomoscioRails::HTTPCalls::Destroy
20
+ end
21
+
22
+ class StudentGroup
23
+ include DomoscioRails::Resource
24
+ include DomoscioRails::HTTPCalls::Create
25
+ include DomoscioRails::HTTPCalls::Fetch
26
+ include DomoscioRails::HTTPCalls::Destroy
27
+ end
7
28
  end
8
29
  end
@@ -5,7 +5,7 @@ module DomoscioRails
5
5
  module ClassMethods
6
6
  def create(*id, params)
7
7
  id = id.empty? ? nil : id[0]
8
- DomoscioRails.request(:post, url(id), params)
8
+ DomoscioRails.request(:post, url(id, nil, params), params)
9
9
  end
10
10
  end
11
11
 
@@ -17,7 +17,7 @@ module DomoscioRails
17
17
  module Update
18
18
  module ClassMethods
19
19
  def update(id = nil, params = {})
20
- DomoscioRails.request(:put, url(id), params)
20
+ DomoscioRails.request(:put, url(id, nil, params), params)
21
21
  end
22
22
  end
23
23
 
@@ -26,21 +26,10 @@ module DomoscioRails
26
26
  end
27
27
  end
28
28
 
29
- module UpdateSelf
30
- module ClassMethods
31
- def update_self(params = {})
32
- DomoscioRails.request(:put, url(nil, nil, true), params)
33
- end
34
- end
35
- def self.included(base)
36
- base.extend(ClassMethods)
37
- end
38
- end
39
-
40
29
  module Fetch
41
30
  module ClassMethods
42
31
  def fetch(id = nil, params = {})
43
- DomoscioRails.request(:get, url(id), params)
32
+ DomoscioRails.request(:get, url(id, nil, params), params)
44
33
  end
45
34
  end
46
35
 
@@ -52,7 +41,7 @@ module DomoscioRails
52
41
  module Destroy
53
42
  module ClassMethods
54
43
  def destroy(id = nil, params = {})
55
- DomoscioRails.request(:delete, url(id), params)
44
+ DomoscioRails.request(:delete, url(id, nil, params), params)
56
45
  end
57
46
  end
58
47
 
@@ -64,11 +53,11 @@ module DomoscioRails
64
53
  module Util
65
54
  module ClassMethods
66
55
  def util(id = nil, util_name = nil, params = {})
67
- DomoscioRails.request(:get, url(id, util_name), params)
56
+ DomoscioRails.request(:get, url(id, util_name, params), params)
68
57
  end
69
58
 
70
59
  def util_post(id = nil, util_name = nil, params = {})
71
- DomoscioRails.request(:post, url(id, util_name), params)
60
+ DomoscioRails.request(:post, url(id, util_name, params), params)
72
61
  end
73
62
  end
74
63
 
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class KnowledgeEdge < Resource
2
+ class KnowledgeEdge
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class KnowledgeGraph < Resource
2
+ class KnowledgeGraph
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class KnowledgeGraphNode < Resource
2
+ class KnowledgeGraphNode
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class KnowledgeGraphScale < Resource
2
+ class KnowledgeGraphScale
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class KnowledgeNode < Resource
2
+ class KnowledgeNode
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class KnowledgeNodeContent < Resource
2
+ class KnowledgeNodeContent
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class KnowledgeNodeStudent < Resource
2
+ class KnowledgeNodeStudent
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Scale < Resource
2
+ class Scale
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class LearningProgram < Resource
2
+ class LearningProgram
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class LearningProgramStudent < Resource
2
+ class LearningProgramStudent
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Objective < Resource
2
+ class Objective
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class ObjectiveKnowledgeNode < Resource
2
+ class ObjectiveKnowledgeNode
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class ObjectiveKnowledgeNodeStudent < Resource
2
+ class ObjectiveKnowledgeNodeStudent
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class ObjectiveStudent < Resource
2
+ class ObjectiveStudent
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Subscription < Resource
2
+ class Subscription
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,14 +1,31 @@
1
1
  module DomoscioRails
2
- class Resource
3
- class << self
2
+ module Resource
3
+ def self.included(base)
4
+ base.extend ClassMethods
5
+ end
6
+
7
+ module ClassMethods
4
8
  def class_name
5
9
  name.split('::')[-1]
6
10
  end
7
11
 
8
- def url(id = nil, util_name = nil)
12
+ def parent_class
13
+ name.split('::')[-2]
14
+ end
15
+
16
+ def nesting?
17
+ name.split('::').size > 2
18
+ end
19
+
20
+ def url(id, util_name, params)
9
21
  raise NotImplementedError, 'Resource is an abstract class. Do not use it directly.' if self == Resource
10
22
 
11
23
  build_url = "/v#{DomoscioRails.configuration.version}/instances/#{DomoscioRails.configuration.client_id}"
24
+ if nesting?
25
+ parent = underscore(parent_class)
26
+ build_url << "/#{parent}s"
27
+ build_url << "/#{CGI.escape(params[(parent + '_id').to_sym].to_s)}"
28
+ end
12
29
  build_url << "/#{underscore(class_name)}s"
13
30
  build_url << "/#{util_name}" if util_name
14
31
  build_url << "/#{CGI.escape(id.to_s)}" if id
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Tag < Resource
2
+ class Tag
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class TagEdge < Resource
2
+ class TagEdge
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class TagSet < Resource
2
+ class TagSet
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Tagging < Resource
2
+ class Tagging
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  include DomoscioRails::HTTPCalls::Destroy
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Analytic < Resource
2
+ class Analytic
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Util
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Export < Resource
2
+ class Export
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Util
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class ExportRequest < Resource
2
+ class ExportRequest
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Util
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class GameplayUtil < Resource
2
+ class GameplayUtil
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Util
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class KpiLog < Resource
2
+ class KpiLog
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Create
4
5
  include DomoscioRails::HTTPCalls::Fetch
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class Lxp < Resource
2
+ class Lxp
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Raw
4
5
  include DomoscioRails::HTTPCalls::Util
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class RecommendationUtil < Resource
2
+ class RecommendationUtil
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Util
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class ReviewUtil < Resource
2
+ class ReviewUtil
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Util
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module DomoscioRails
2
- class StatsUtil < Resource
2
+ class StatsUtil
3
+ include DomoscioRails::Resource
3
4
  include DomoscioRails::HTTPCalls::Util
4
5
  end
5
6
  end
@@ -1,3 +1,3 @@
1
1
  module DomoscioRails
2
- VERSION = '0.4.23'.freeze
2
+ VERSION = '0.4.25'.freeze
3
3
  end
@@ -12,7 +12,6 @@ require 'domoscio_rails/resource'
12
12
  require 'domoscio_rails/data/content'
13
13
  require 'domoscio_rails/data/device'
14
14
  require 'domoscio_rails/data/event'
15
- require 'domoscio_rails/data/instance'
16
15
  require 'domoscio_rails/data/instance_parameter'
17
16
  require 'domoscio_rails/data/recommendation'
18
17
  require 'domoscio_rails/data/learning_session_recommendation'
@@ -23,6 +22,9 @@ require 'domoscio_rails/data/student'
23
22
  require 'domoscio_rails/data/student_group'
24
23
  require 'domoscio_rails/data/question'
25
24
  require 'domoscio_rails/data/user'
25
+ require 'domoscio_rails/data/account'
26
+ require 'domoscio_rails/data/role'
27
+ require 'domoscio_rails/data/supervisor'
26
28
  require 'domoscio_rails/knowledge/knowledge_edge'
27
29
  require 'domoscio_rails/knowledge/knowledge_graph'
28
30
  require 'domoscio_rails/knowledge/scale'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domoscio_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.23
4
+ version: 0.4.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoit Praly
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-30 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -51,19 +51,21 @@ files:
51
51
  - lib/domoscio_rails.rb
52
52
  - lib/domoscio_rails.tbz
53
53
  - lib/domoscio_rails/authorization_token.rb
54
+ - lib/domoscio_rails/data/account.rb
54
55
  - lib/domoscio_rails/data/content.rb
55
56
  - lib/domoscio_rails/data/device.rb
56
57
  - lib/domoscio_rails/data/event.rb
57
- - lib/domoscio_rails/data/instance.rb
58
58
  - lib/domoscio_rails/data/instance_parameter.rb
59
59
  - lib/domoscio_rails/data/learning_session.rb
60
60
  - lib/domoscio_rails/data/learning_session_knowledge_node.rb
61
61
  - lib/domoscio_rails/data/learning_session_recommendation.rb
62
62
  - lib/domoscio_rails/data/question.rb
63
63
  - lib/domoscio_rails/data/recommendation.rb
64
+ - lib/domoscio_rails/data/role.rb
64
65
  - lib/domoscio_rails/data/scorm.rb
65
66
  - lib/domoscio_rails/data/student.rb
66
67
  - lib/domoscio_rails/data/student_group.rb
68
+ - lib/domoscio_rails/data/supervisor.rb
67
69
  - lib/domoscio_rails/data/user.rb
68
70
  - lib/domoscio_rails/errors.rb
69
71
  - lib/domoscio_rails/http_calls.rb
@@ -102,7 +104,7 @@ homepage: http://www.domoscio.com
102
104
  licenses:
103
105
  - MIT
104
106
  metadata: {}
105
- post_install_message:
107
+ post_install_message:
106
108
  rdoc_options: []
107
109
  require_paths:
108
110
  - lib
@@ -118,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
120
  version: '0'
119
121
  requirements: []
120
122
  rubygems_version: 3.2.22
121
- signing_key:
123
+ signing_key:
122
124
  specification_version: 4
123
125
  summary: Summary of DomoscioRailspec.
124
126
  test_files: []
@@ -1,8 +0,0 @@
1
- module DomoscioRails
2
- class Instance < Resource
3
- include DomoscioRails::HTTPCalls::Create
4
- include DomoscioRails::HTTPCalls::Fetch
5
- include DomoscioRails::HTTPCalls::UpdateSelf
6
- include DomoscioRails::HTTPCalls::Destroy
7
- end
8
- end