rawg_api 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +5 -4
- data/lib/rawg_api/entities/game/entity.rb +1 -0
- data/lib/rawg_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d7cde2ebd873db333edfe7953042367d134269df1617c17e456758bbb8f8cef
|
4
|
+
data.tar.gz: 0a77eb2fab4b08405d9b3cca6310334db8138bb1ce7a380ffa8c0644638e9d31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16457536eea8cae64dc2b61d0d5b8230cc7a6451d7951468901d538cb2ae6060fc91ca7b7b9d870f810e504c32a7d9c935fd47d1cfe15f17d5c57a763d6b38e3
|
7
|
+
data.tar.gz: 9963f25e6d96a53ca0a9d057077eff0765301e3aeef8cf640210f0b8ad9cc1e5e30276ae3b64170235c405525ca1981369cb8155f4462cf0805264cda6f1fc9c
|
data/README.md
CHANGED
@@ -140,8 +140,8 @@ and accept the same parameters as their `Client` counterpart.
|
|
140
140
|
```
|
141
141
|
# General Usage
|
142
142
|
response = RawgApi::Entities::{ENTITY_NAME}.{METHOD} # returns Hashie Object
|
143
|
-
# If response is a collection
|
144
143
|
results = response.results
|
144
|
+
|
145
145
|
# Returns info regarding the request, such as current page, page size etc...
|
146
146
|
metadata = response.metadata
|
147
147
|
|
@@ -158,8 +158,7 @@ response = RawgApi::Entities::Entity.all(page:2, page_size: 20)
|
|
158
158
|
response = RawgApi::Clients::Game::Entity.search(title: 'Portal 2')
|
159
159
|
|
160
160
|
# Get game by id
|
161
|
-
|
162
|
-
response = RawgApi::Entities::Game::Additions.find(3328)
|
161
|
+
response = RawgApi::Entities::Game::Entity.find(3328)
|
163
162
|
|
164
163
|
# Access value by attribute
|
165
164
|
response.name # => "The Witcher 3: Wild Hunt"
|
@@ -199,7 +198,9 @@ RawgApi::Entities::Game::Entity.find_tags(3328)
|
|
199
198
|
- `RawgApi::Entities::Game::DevelopmentTeam`: `#find`
|
200
199
|
- `RawgApi::Entities::Game::Series`: `#find`
|
201
200
|
- `RawgApi::Entities::Game::Entity`:
|
202
|
-
- `#find`,`#all`,`#find_suggested_games`,`#find_series
|
201
|
+
- `#find`,`#all`,`#search`,`#find_suggested_games`,`#find_series`,
|
202
|
+
- `#find_screenshots`,`#find_stores`,`#find_reddit`,`#find_additions`,
|
203
|
+
- `#find_youtube`,`#find_twitch`, `#find_achievements`
|
203
204
|
- `RawgApi::Entities::Game::Details`: `#find`
|
204
205
|
- `RawgApi::Entities::Game::Trailers`: `#find`
|
205
206
|
- `RawgApi::Entities::Game::ParentGames`: `#find`
|
@@ -11,6 +11,7 @@ module RawgApi
|
|
11
11
|
delegate_method Game::Screenshots, :find_screenshots, :find
|
12
12
|
delegate_method Game::Stores, :find_stores, :find
|
13
13
|
delegate_method Game::Reddit, :find_reddit, :find
|
14
|
+
delegate_method Game::Achievements, :find_achievements, :find
|
14
15
|
delegate_method Game::Details, :find, :find
|
15
16
|
|
16
17
|
client_service Clients::Games
|
data/lib/rawg_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rawg_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harry Georgilas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: api_struct
|