bwapi 9.0.0.pre.390 → 9.0.0.pre.401

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG.md +18 -0
  3. data/CONTRIBUTING.md +14 -0
  4. data/README.md +30 -34
  5. data/bwapi.gemspec +1 -1
  6. data/lib/bwapi/client/admin.rb +2 -2
  7. data/lib/bwapi/client/admin/become.rb +1 -1
  8. data/lib/bwapi/client/admin/search.rb +3 -3
  9. data/lib/bwapi/client/admin/sub_clients.rb +5 -5
  10. data/lib/bwapi/client/admin/users.rb +4 -4
  11. data/lib/bwapi/client/admin/users/sharing.rb +2 -2
  12. data/lib/bwapi/client/brandwatch.rb +1 -1
  13. data/lib/bwapi/client/brandwatch/become.rb +1 -1
  14. data/lib/bwapi/client/brandwatch/client_modules.rb +2 -2
  15. data/lib/bwapi/client/client.rb +2 -2
  16. data/lib/bwapi/client/command_center/client.rb +1 -1
  17. data/lib/bwapi/client/command_center/displays.rb +5 -5
  18. data/lib/bwapi/client/command_center/displays/events.rb +5 -5
  19. data/lib/bwapi/client/command_center/displays/messages.rb +5 -5
  20. data/lib/bwapi/client/command_center/displays/scenes.rb +6 -6
  21. data/lib/bwapi/client/command_center/displays/screens.rb +6 -6
  22. data/lib/bwapi/client/command_center/displays/users.rb +5 -5
  23. data/lib/bwapi/client/command_center/displays/users/access.rb +2 -2
  24. data/lib/bwapi/client/command_center/scene_types.rb +3 -3
  25. data/lib/bwapi/client/command_center/themes.rb +1 -1
  26. data/lib/bwapi/client/command_center/users.rb +3 -3
  27. data/lib/bwapi/client/command_center/users/access.rb +1 -1
  28. data/lib/bwapi/client/error_codes.rb +1 -1
  29. data/lib/bwapi/client/filters.rb +1 -1
  30. data/lib/bwapi/client/languages.rb +1 -1
  31. data/lib/bwapi/client/locations.rb +2 -2
  32. data/lib/bwapi/client/logout.rb +1 -1
  33. data/lib/bwapi/client/me.rb +1 -1
  34. data/lib/bwapi/client/metrics.rb +1 -1
  35. data/lib/bwapi/client/ping.rb +5 -5
  36. data/lib/bwapi/client/projects.rb +5 -5
  37. data/lib/bwapi/client/projects/bulkactions.rb +1 -1
  38. data/lib/bwapi/client/projects/bulkactions/author.rb +1 -1
  39. data/lib/bwapi/client/projects/bulkactions/mentions.rb +1 -1
  40. data/lib/bwapi/client/projects/categories.rb +4 -4
  41. data/lib/bwapi/client/projects/categories/copy.rb +1 -1
  42. data/lib/bwapi/client/projects/data.rb +2 -2
  43. data/lib/bwapi/client/projects/data/mentions.rb +4 -4
  44. data/lib/bwapi/client/projects/data/mentions/notes.rb +4 -4
  45. data/lib/bwapi/client/projects/data/volume.rb +1 -1
  46. data/lib/bwapi/client/projects/data_download.rb +3 -3
  47. data/lib/bwapi/client/projects/demographics.rb +1 -1
  48. data/lib/bwapi/client/projects/facebook_queries.rb +5 -5
  49. data/lib/bwapi/client/projects/group/author_group.rb +5 -5
  50. data/lib/bwapi/client/projects/group/location_group.rb +5 -5
  51. data/lib/bwapi/client/projects/group/site_group.rb +5 -5
  52. data/lib/bwapi/client/projects/queries.rb +6 -6
  53. data/lib/bwapi/client/projects/queries/backfill.rb +4 -4
  54. data/lib/bwapi/client/projects/queries/date_range.rb +5 -5
  55. data/lib/bwapi/client/projects/queries/mentions.rb +3 -3
  56. data/lib/bwapi/client/projects/query_groups.rb +5 -5
  57. data/lib/bwapi/client/projects/rules.rb +5 -5
  58. data/lib/bwapi/client/projects/rules/backfill.rb +1 -1
  59. data/lib/bwapi/client/projects/rules/copy.rb +1 -1
  60. data/lib/bwapi/client/projects/sharing.rb +5 -5
  61. data/lib/bwapi/client/projects/signals.rb +1 -1
  62. data/lib/bwapi/client/projects/signals/groups.rb +5 -5
  63. data/lib/bwapi/client/projects/stream_dashboards.rb +6 -6
  64. data/lib/bwapi/client/projects/stream_dashboards/streams.rb +5 -5
  65. data/lib/bwapi/client/projects/summary.rb +1 -1
  66. data/lib/bwapi/client/projects/tags.rb +5 -5
  67. data/lib/bwapi/client/projects/twitter_queries.rb +4 -4
  68. data/lib/bwapi/client/projects/users.rb +1 -1
  69. data/lib/bwapi/client/projects/workflow.rb +1 -1
  70. data/lib/bwapi/client/query_validation.rb +2 -2
  71. data/lib/bwapi/client/sso.rb +1 -1
  72. data/lib/bwapi/client/test_search.rb +1 -1
  73. data/lib/bwapi/client/user.rb +2 -2
  74. data/lib/bwapi/client/user/notifications.rb +4 -4
  75. data/lib/bwapi/request.rb +6 -6
  76. metadata +5 -3
@@ -26,7 +26,7 @@ module BWAPI
26
26
  # @param opts [Hash] options hash of parameters
27
27
  # @option opts [Integer] page Page of results to retrieve
28
28
  # @option opts [Integer] pageSize Results per page of results
29
- # @return [Hashie::Mash] All projects
29
+ # @return [Hash] All projects
30
30
  def projects(opts = {})
31
31
  get 'projects', opts
32
32
  end
@@ -34,7 +34,7 @@ module BWAPI
34
34
  # Get a specific project
35
35
  #
36
36
  # @param project_id [Integer] Id of the existing project
37
- # @return [Hashie::Mash] Specific project
37
+ # @return [Hash] Specific project
38
38
  def get_project(project_id)
39
39
  get "projects/#{project_id}"
40
40
  end
@@ -50,7 +50,7 @@ module BWAPI
50
50
  # @option opts [Array] defaultLangCodes Default languages of the project
51
51
  # @option opts [Date] creationDate Date the project was created on
52
52
  # @option opts [Integer] creationUserId User ID of the user who created the project
53
- # @return [Hashie::Mash] New project
53
+ # @return [Hash] New project
54
54
  def create_project(opts = {})
55
55
  post 'projects', opts
56
56
  end
@@ -67,7 +67,7 @@ module BWAPI
67
67
  # @option opts [Array] defaultLangCodes Default languages of the project
68
68
  # @option opts [Date] creationDate Date the project was created on
69
69
  # @option opts [Integer] creationUserId User ID of the user who created the project
70
- # @return [Hashie::Mash] Updated project
70
+ # @return [Hash] Updated project
71
71
  def update_project(project_id, opts = {})
72
72
  put "projects/#{project_id}", opts
73
73
  end
@@ -75,7 +75,7 @@ module BWAPI
75
75
  # Delete an existing project
76
76
  #
77
77
  # @param project_id [Integer] id Id of the existing project
78
- # @return [Hashie::Mash] Deleted project
78
+ # @return [Hash] Deleted project
79
79
  def delete_project(project_id)
80
80
  delete "projects/#{project_id}"
81
81
  end
@@ -13,7 +13,7 @@ module BWAPI
13
13
  # @option opts [Integer] page Page of projects to retrieve
14
14
  # @option opts [Integer] pageSize Results per page of results
15
15
  # @option opts [String] sinceDate the start date to get bulk actions from
16
- # @return [Hashie::Mash] All bulk actions in project
16
+ # @return [Hash] All bulk actions in project
17
17
  def bulk_actions(project_id, opts = {})
18
18
  get "projects/#{project_id}/bulkactions", opts
19
19
  end
@@ -15,7 +15,7 @@ module BWAPI
15
15
  # @option opts [Integer] id of the bulk action
16
16
  # @option opts [Array] interests list<String> Interests to assign
17
17
  # @option opts [Array] professions list<AuthorProfessionDTO> Professions to assign
18
- # @return [Hashie::Mash] New bulk action for mentions
18
+ # @return [Hash] New bulk action for mentions
19
19
  def bulk_edit_author(project_id, opts = {})
20
20
  post "projects/#{project_id}/bulkactions/author", opts
21
21
  end
@@ -11,7 +11,7 @@ module BWAPI
11
11
  # @option opts [Hash] action <mention patch dto> to apply to these mentions
12
12
  # @option opts [Hash] filter <filter dto> to specify what kind of mentions this bulk action should apply to
13
13
  # @option opts [Integer] sampleAmount Amount to be sample by this bulk action
14
- # @return [Hashie::Mash] New bulk action for mentions
14
+ # @return [Hash] New bulk action for mentions
15
15
  def bulk_edit_mentions(project_id, opts = {})
16
16
  post "projects/#{project_id}/bulkactions/mentions", opts
17
17
  end
@@ -11,7 +11,7 @@ module BWAPI
11
11
  # @param opts [Hash] options hash of parameters
12
12
  # @option opts [Integer] page Page of projects to retrieve
13
13
  # @option opts [Integer] pageSize Results per page of results
14
- # @return [Hashie::Mash] All categories in project
14
+ # @return [Hash] All categories in project
15
15
  def categories(project_id, opts = {})
16
16
  get "projects/#{project_id}/categories", opts
17
17
  end
@@ -24,7 +24,7 @@ module BWAPI
24
24
  # @option opts [String] name Name of the category
25
25
  # @option opts [Array] children The children of the category
26
26
  # @option opts [Boolean] multiple Whether multiple sub categories can be selected
27
- # @return [Hashie::Mash] New category
27
+ # @return [Hash] New category
28
28
  def create_category(project_id, opts = {})
29
29
  post "projects/#{project_id}/categories", opts
30
30
  end
@@ -38,7 +38,7 @@ module BWAPI
38
38
  # @option opts [String] name Name of the category
39
39
  # @option opts [Array] children The children of the category
40
40
  # @option opts [Boolean] multiple Whether multiple sub categories can be selected
41
- # @return [Hashie::Mash] Updated category
41
+ # @return [Hash] Updated category
42
42
  def update_category(project_id, category_id, opts = {})
43
43
  put "projects/#{project_id}/categories/#{category_id}", opts
44
44
  end
@@ -47,7 +47,7 @@ module BWAPI
47
47
  #
48
48
  # @param project_id [Integer] Id of project
49
49
  # @param category_id [Integer] Id of query group
50
- # @return [Hashie::Mash] Deleted category
50
+ # @return [Hash] Deleted category
51
51
  def delete_category(project_id, category_id)
52
52
  delete "projects/#{project_id}/categories/#{category_id}"
53
53
  end
@@ -10,7 +10,7 @@ module BWAPI
10
10
  # @param category_id [Integer] Id of query group
11
11
  # @param opts [Hash] options hash of parameters
12
12
  # @option opts [Hash] destinationProjectId target project id for copy
13
- # @return [Hashie::Mash] Copied category
13
+ # @return [Hash] Copied category
14
14
  def copy_category(project_id, category_id, opts = {})
15
15
  post "projects/#{project_id}/categories/#{category_id}/copy", opts
16
16
  end
@@ -14,7 +14,7 @@ module BWAPI
14
14
  # @param dimension_two [String] Dimension 2 value
15
15
  # @param opts [Hash] options hash of parameters
16
16
  # @option opts [Hash] filter The filters to apply
17
- # @return [Hashie::Mash] All Chart data mentions
17
+ # @return [Hash] All Chart data mentions
18
18
  def data(project_id, aggregate, dimension_one, dimension_two, opts = {})
19
19
  get "projects/#{project_id}/data/#{aggregate}/#{dimension_one}/#{dimension_two}", opts
20
20
  end
@@ -24,7 +24,7 @@ module BWAPI
24
24
  # @param project_id [Integer] Id of project
25
25
  # @param opts [Hash] options hash of parameters
26
26
  # @option opts [Hash] filter The filters to apply
27
- # @return [Hashie::Mash] Headline figures for spedified channels
27
+ # @return [Hash] Headline figures for spedified channels
28
28
  def data_headlines(project_id, opts = {})
29
29
  get "projects/#{project_id}/data/headlines", opts
30
30
  end
@@ -16,7 +16,7 @@ module BWAPI
16
16
  # @option opts [String] orderBy Parameter to sort by
17
17
  # @option opts [String] orderDirection Direction of sort
18
18
  # @option opts [Integer] orderByCategory Category to sort by when orderBy category
19
- # @return [Hashie::Mash] All Mentions
19
+ # @return [Hash] All Mentions
20
20
  def data_mentions(project_id, opts = {})
21
21
  get "projects/#{project_id}/data/mentions", opts
22
22
  end
@@ -26,7 +26,7 @@ module BWAPI
26
26
  # @param project_id [Integer] Id of project
27
27
  # @param opts [Hash] options hash of parameters
28
28
  # @option opts [Hash] List The patches to be applied
29
- # @return [Hashie::Mash] Updated mentions
29
+ # @return [Hash] Updated mentions
30
30
  def update_data_mentions(project_id, opts = {})
31
31
  patch "projects/#{project_id}/data/mentions", opts
32
32
  end
@@ -41,7 +41,7 @@ module BWAPI
41
41
  # @option opts [String] orderBy Parameter to sort by
42
42
  # @option opts [String] orderDirection Direction of sort
43
43
  # @option opts [Integer] orderByCategory Category to sort by when orderBy category
44
- # @return [Hashie::Mash] All Mentions
44
+ # @return [Hash] All Mentions
45
45
  def data_mentions_fulltext(project_id, opts = {})
46
46
  get "projects/#{project_id}/data/mentions/fulltext", opts
47
47
  end
@@ -56,7 +56,7 @@ module BWAPI
56
56
  # @option opts [String] orderBy Parameter to sort by
57
57
  # @option opts [String] orderDirection Direction of sort
58
58
  # @option opts [Integer] orderByCategory Category to sort by when orderBy category
59
- # @return [Hashie::Mash] All Mentions
59
+ # @return [Hash] All Mentions
60
60
  def data_mentions_tweets(project_id, opts = {})
61
61
  get "projects/#{project_id}/data/mentions/tweets", opts
62
62
  end
@@ -13,7 +13,7 @@ module BWAPI
13
13
  # @option opts [Integer] project_id the id of the project the mention is in
14
14
  # @option opts [Integer] resource_id the id of the mention
15
15
  # @option opts [String] text the text of the note
16
- # @return [Hashie::Mash] the new note
16
+ # @return [Hash] the new note
17
17
  def create_mention_note(project_id, resource_id, opts = {})
18
18
  post "projects/#{project_id}/data/mentions/#{resource_id}/notes", opts
19
19
  end
@@ -23,7 +23,7 @@ module BWAPI
23
23
  # @param project_id [Integer] Id of project
24
24
  # @param resource_id [Integer] Id of mention
25
25
  # @param note_id [Integer] Id of the note
26
- # @return [Hashie::Mash] the selected note
26
+ # @return [Hash] the selected note
27
27
  def mention_note(project_id, resource_id, note_id)
28
28
  get "projects/#{project_id}/data/mentions/#{resource_id}/notes/#{note_id}"
29
29
  end
@@ -37,7 +37,7 @@ module BWAPI
37
37
  # @option opts [Integer] project_id the id of the project the mention is in
38
38
  # @option opts [Integer] resource_id the id of the mention
39
39
  # @option opts [String] text the text of the note
40
- # @return [Hashie::Mash] the edited note
40
+ # @return [Hash] the edited note
41
41
  def update_mention_note(project_id, resource_id, note_id, opts = {})
42
42
  put "projects/#{project_id}/data/mentions/#{resource_id}/notes/#{note_id}", opts
43
43
  end
@@ -49,7 +49,7 @@ module BWAPI
49
49
  # @param note_id [Integer] Id of the note
50
50
  # @param opts [Hash] options hash of parameters
51
51
  # @option opts [String] prependNote the text of the note
52
- # @return [Hashie::Mash] the patched note
52
+ # @return [Hash] the patched note
53
53
  def patch_mention_note(project_id, resource_id, note_id, opts = {})
54
54
  patch "projects/#{project_id}/data/mentions/#{resource_id}/notes/#{note_id}", opts
55
55
  end
@@ -10,7 +10,7 @@ module BWAPI
10
10
  # @param opts [Hash] options hash of parameters
11
11
  # @option opts [Hash] filter The filters to apply
12
12
  # @option opts [Array] dateRanges Date range ids
13
- # @return [Hashie::Mash] All Chart data mentions
13
+ # @return [Hash] All Chart data mentions
14
14
  def data_volume_date_ranges_days(project_id, opts = {})
15
15
  get "projects/#{project_id}/data/volume/dataRanges/days", opts
16
16
  end
@@ -8,7 +8,7 @@ module BWAPI
8
8
  # @param project_id [Integer] Id of project
9
9
  # @option opts [Integer] page Page of projects to retrieve
10
10
  # @option opts [Integer] pageSize Results per page of results
11
- # @return [Hashie::Mash] All data downloads in project
11
+ # @return [Hash] All data downloads in project
12
12
  def data_downloads(project_id, opts = {})
13
13
  get "projects/#{project_id}/datadownload", opts
14
14
  end
@@ -17,7 +17,7 @@ module BWAPI
17
17
  #
18
18
  # @param project_id [Integer] Id of project
19
19
  # @param data_download_id [Integer] Id of data download
20
- # @return [Hashie::Mash] Specific data download
20
+ # @return [Hash] Specific data download
21
21
  def get_data_download(project_id, data_download_id)
22
22
  get "projects/#{project_id}/datadownload/#{data_download_id}"
23
23
  end
@@ -37,7 +37,7 @@ module BWAPI
37
37
  # @option opts [String] downloadLinkXLS The link to download the XLS format
38
38
  # @option opts [String] downloadLinkCSV The link to download the CSV format
39
39
  # @option opts [Array] additionalColumns The additional columns for the data download
40
- # @return [Hashie::Mash] New data download
40
+ # @return [Hash] New data download
41
41
  def create_data_download(project_id, opts = {})
42
42
  post "projects/#{project_id}/datadownload", opts
43
43
  end
@@ -10,7 +10,7 @@ module BWAPI
10
10
  # @param opts [Hash] options Hash of parameters
11
11
  # @option opts [Integer] limit The limit to return
12
12
  # @option opts [Hash] filter The filters to apply
13
- # @return [Hashie::Mash] All data downloads in project
13
+ # @return [Hash] All data downloads in project
14
14
  def demographics(project_id, metric, opts = {})
15
15
  get "projects/#{project_id}/demographics/#{metric}", opts
16
16
  end
@@ -6,7 +6,7 @@ module BWAPI
6
6
  # Get all facebook queries in a project
7
7
  #
8
8
  # @param project_id [Integer] Id of project
9
- # @return [Hashie::Mash] All facebook queries in project
9
+ # @return [Hash] All facebook queries in project
10
10
  def facebook_queries(project_id)
11
11
  get "projects/#{project_id}/facebookqueries"
12
12
  end
@@ -15,7 +15,7 @@ module BWAPI
15
15
  #
16
16
  # @param project_id [Integer] Id of project
17
17
  # @param query_id [Integer] Id of facebook query
18
- # @return [Hashie::Mash] Specific facebook query
18
+ # @return [Hash] Specific facebook query
19
19
  def get_facebook_query(project_id, query_id)
20
20
  get "projects/#{project_id}/facebookqueries/#{query_id}"
21
21
  end
@@ -43,7 +43,7 @@ module BWAPI
43
43
  # @option opts [String] type Query type
44
44
  # @option opts [String] facebookConsumerKey Facebook consumer key
45
45
  # @option opts [String] facebookAccessToken Facebook access token
46
- # @return [Hashie::Mash] New facebook query
46
+ # @return [Hash] New facebook query
47
47
  def create_facebook_query(project_id, opts = {})
48
48
  post "projects/#{project_id}/facebookqueries", opts
49
49
  end
@@ -55,7 +55,7 @@ module BWAPI
55
55
  # @option opts [String] accessToken Facebook access token
56
56
  # @option opts [String] consumerKey Facebook consumer key
57
57
  # @option opts [Array] queryIds Array of query ids
58
- # @return [Hashie::Mash] Authorised facebook queries
58
+ # @return [Hash] Authorised facebook queries
59
59
  def authorise_facebook_queries(project_id, opts = {})
60
60
  post "projects/#{project_id}/facebookqueries/authorise", opts
61
61
  end
@@ -84,7 +84,7 @@ module BWAPI
84
84
  # @option opts [String] type Query type
85
85
  # @option opts [String] facebookConsumerKey Facebook consumer key
86
86
  # @option opts [String] facebookAccessToken Facebook access token
87
- # @return [Hashie::Mash] Updated facebook query
87
+ # @return [Hash] Updated facebook query
88
88
  def update_facebook_query(project_id, query_id, opts = {})
89
89
  put "projects/#{project_id}/facebookqueries/#{query_id}", opts
90
90
  end
@@ -7,7 +7,7 @@ module BWAPI
7
7
  # Get summary of all author groups in project
8
8
  #
9
9
  # @param project_id [Integer] Id of project
10
- # @return [Hashie::Mash] Summary of all author groups in project
10
+ # @return [Hash] Summary of all author groups in project
11
11
  def author_groups_summary(project_id, opts = {})
12
12
  get "projects/#{project_id}/group/author/summary", opts
13
13
  end
@@ -16,7 +16,7 @@ module BWAPI
16
16
  #
17
17
  # @param project_id [Integer] Id of project
18
18
  # @param author_group_id [Integer] Id of author group
19
- # @return [Hashie::Mash] Specific author group
19
+ # @return [Hash] Specific author group
20
20
  def get_author_group(project_id, author_group_id)
21
21
  get "projects/#{project_id}/group/author/#{author_group_id}"
22
22
  end
@@ -30,7 +30,7 @@ module BWAPI
30
30
  # @option opts [Array] sharedProjectIds The ids of the shared projects
31
31
  # @option opts [String] shared The type of sharing for the group
32
32
  # @option opts [Array] authors The authors in the group
33
- # @return [Hashie::Mash] New author group
33
+ # @return [Hash] New author group
34
34
  def create_author_group(project_id, opts = {})
35
35
  post "projects/#{project_id}/group/author", opts
36
36
  end
@@ -46,7 +46,7 @@ module BWAPI
46
46
  # @option opts [Array] sharedProjectIds The ids of the shared projects
47
47
  # @option opts [String] shared The type of sharing for the group
48
48
  # @option opts [Array] authors The authors in the group
49
- # @return [Hashie::Mash] Updated author group
49
+ # @return [Hash] Updated author group
50
50
  def update_author_group(project_id, author_group_id, opts = {})
51
51
  put "projects/#{project_id}/group/author/#{author_group_id}", opts
52
52
  end
@@ -55,7 +55,7 @@ module BWAPI
55
55
  #
56
56
  # @param project_id [Integer] Id of project
57
57
  # @param author_group_id [Integer] Id of author group
58
- # @return [Hashie::Mash] Deleted author group
58
+ # @return [Hash] Deleted author group
59
59
  def delete_author_group(project_id, author_group_id)
60
60
  delete "projects/#{project_id}/group/author/#{author_group_id}"
61
61
  end
@@ -7,7 +7,7 @@ module BWAPI
7
7
  # Get summary of all location groups in project
8
8
  #
9
9
  # @param project_id [Integer] Id of project
10
- # @return [Hashie::Mash] Summary of all location groups in project
10
+ # @return [Hash] Summary of all location groups in project
11
11
  def location_groups_summary(project_id, opts = {})
12
12
  get "projects/#{project_id}/group/location/summary", opts
13
13
  end
@@ -16,7 +16,7 @@ module BWAPI
16
16
  #
17
17
  # @param project_id [Integer] Id of project
18
18
  # @param location_group_id [Integer] Id of location group
19
- # @return [Hashie::Mash] Specific location group
19
+ # @return [Hash] Specific location group
20
20
  def get_location_group(project_id, location_group_id)
21
21
  get "projects/#{project_id}/group/location/#{location_group_id}"
22
22
  end
@@ -30,7 +30,7 @@ module BWAPI
30
30
  # @option opts [Array] sharedProjectIds The ids of the shared projects
31
31
  # @option opts [String] shared The type of sharing for the group
32
32
  # @option opts [Array] location The location in the group
33
- # @return [Hashie::Mash] New location group
33
+ # @return [Hash] New location group
34
34
  def create_location_group(project_id, opts = {})
35
35
  post "projects/#{project_id}/group/location", opts
36
36
  end
@@ -46,7 +46,7 @@ module BWAPI
46
46
  # @option opts [Array] sharedProjectIds The ids of the shared projects
47
47
  # @option opts [String] shared The type of sharing for the group
48
48
  # @option opts [Array] location The location in the group
49
- # @return [Hashie::Mash] Updated location group
49
+ # @return [Hash] Updated location group
50
50
  def update_location_group(project_id, location_group_id, opts = {})
51
51
  put "projects/#{project_id}/group/location/#{location_group_id}", opts
52
52
  end
@@ -55,7 +55,7 @@ module BWAPI
55
55
  #
56
56
  # @param project_id [Integer] Id of project
57
57
  # @param location_group_id [Integer] Id of location group
58
- # @return [Hashie::Mash] Deleted location group
58
+ # @return [Hash] Deleted location group
59
59
  def delete_location_group(project_id, location_group_id)
60
60
  delete "projects/#{project_id}/group/location/#{location_group_id}"
61
61
  end
@@ -7,7 +7,7 @@ module BWAPI
7
7
  # Get summary of all site groups in project
8
8
  #
9
9
  # @param project_id [Integer] Id of project
10
- # @return [Hashie::Mash] Summary of all site groups in project
10
+ # @return [Hash] Summary of all site groups in project
11
11
  def site_groups_summary(project_id, opts = {})
12
12
  get "projects/#{project_id}/group/site/summary", opts
13
13
  end
@@ -16,7 +16,7 @@ module BWAPI
16
16
  #
17
17
  # @param project_id [Integer] Id of project
18
18
  # @param site_group_id [Integer] Id of site group
19
- # @return [Hashie::Mash] Specific site group
19
+ # @return [Hash] Specific site group
20
20
  def get_site_group(project_id, site_group_id)
21
21
  get "projects/#{project_id}/group/site/#{site_group_id}"
22
22
  end
@@ -30,7 +30,7 @@ module BWAPI
30
30
  # @option opts [Array] sharedProjectIds The ids of the shared projects
31
31
  # @option opts [String] shared The type of sharing for the group
32
32
  # @option opts [Array] sites The sites in the group
33
- # @return [Hashie::Mash] New site group
33
+ # @return [Hash] New site group
34
34
  def create_site_group(project_id, opts = {})
35
35
  post "projects/#{project_id}/group/site", opts
36
36
  end
@@ -46,7 +46,7 @@ module BWAPI
46
46
  # @option opts [Array] sharedProjectIds The ids of the shared projects
47
47
  # @option opts [String] shared The type of sharing for the group
48
48
  # @option opts [Array] sites The sites in the group
49
- # @return [Hashie::Mash] Updated site group
49
+ # @return [Hash] Updated site group
50
50
  def update_site_group(project_id, site_group_id, opts = {})
51
51
  put "projects/#{project_id}/group/site/#{site_group_id}", opts
52
52
  end
@@ -55,7 +55,7 @@ module BWAPI
55
55
  #
56
56
  # @param project_id [Integer] Id of project
57
57
  # @param site_group_id [Integer] Id of site group
58
- # @return [Hashie::Mash] Deleted site group
58
+ # @return [Hash] Deleted site group
59
59
  def delete_site_group(project_id, site_group_id)
60
60
  delete "projects/#{project_id}/group/site/#{site_group_id}"
61
61
  end
@@ -15,7 +15,7 @@ module BWAPI
15
15
  # @option opts [Array] type types of query to filter by
16
16
  # @option opts [Integer] page Page of results to retrieve
17
17
  # @option opts [Integer] pageSize Results per page of results
18
- # @return [Hashie::Mash] All queries in project
18
+ # @return [Hash] All queries in project
19
19
  def queries(project_id, opts = {})
20
20
  get "projects/#{project_id}/queries", opts
21
21
  end
@@ -23,7 +23,7 @@ module BWAPI
23
23
  # Get summary of all queries in project
24
24
  #
25
25
  # @param project_id [Integer] Id of project
26
- # @return [Hashie::Mash] Summary of all queries in project
26
+ # @return [Hash] Summary of all queries in project
27
27
  def queries_summary(project_id)
28
28
  get "projects/#{project_id}/queries/summary"
29
29
  end
@@ -32,7 +32,7 @@ module BWAPI
32
32
  #
33
33
  # @param project_id [Integer] Id of project
34
34
  # @param query_id [Integer] Id of query
35
- # @return [Hashie::Mash] Specific query
35
+ # @return [Hash] Specific query
36
36
  def get_query(project_id, query_id)
37
37
  get "projects/#{project_id}/queries/#{query_id}"
38
38
  end
@@ -55,7 +55,7 @@ module BWAPI
55
55
  # @option opts [String] industry Industry of the query
56
56
  # @option opts [Date] creationDate Date the query was created on
57
57
  # @option opts [Date] lastModificationDate Modification date of the query
58
- # @return [Hashie::Mash] New query
58
+ # @return [Hash] New query
59
59
  def create_query(project_id, opts = {})
60
60
  post "projects/#{project_id}/queries", opts
61
61
  end
@@ -79,7 +79,7 @@ module BWAPI
79
79
  # @option opts [String] industry Industry of the query
80
80
  # @option opts [Date] creationDate Date the query was created on
81
81
  # @option opts [Date] lastModificationDate Modification date of the query
82
- # @return [Hashie::Mash] Updated query
82
+ # @return [Hash] Updated query
83
83
  def update_query(project_id, query_id, opts = {})
84
84
  put "projects/#{project_id}/queries/#{query_id}", opts
85
85
  end
@@ -88,7 +88,7 @@ module BWAPI
88
88
  #
89
89
  # @param project_id [Integer] Id of project
90
90
  # @param query_id [Integer] Id of query
91
- # @return [Hashie::Mash] Deleted query
91
+ # @return [Hash] Deleted query
92
92
  def delete_query(project_id, query_id)
93
93
  delete "projects/#{project_id}/queries/#{query_id}"
94
94
  end