rawg_api 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56bed91b0a89c745a1ccf5cda9cf9eabba95a610116596fc4616561bf30d8bd1
4
- data.tar.gz: 96f5a0f131659d1d79748ed74c69e3e11ad61256e15d539a3f89182f73521130
3
+ metadata.gz: 0d7cde2ebd873db333edfe7953042367d134269df1617c17e456758bbb8f8cef
4
+ data.tar.gz: 0a77eb2fab4b08405d9b3cca6310334db8138bb1ce7a380ffa8c0644638e9d31
5
5
  SHA512:
6
- metadata.gz: f4aabcecdbf465b46ebd9d4a8f284699a54eb075b6dc9d11a9f526c1a85121ecff9d332c8d777318f93664b0db0bd9b1c2d5ae398e474f34501dd5b4a0cb6c2c
7
- data.tar.gz: 972879b2b6a9da10a288cd3a0b31a077c26bbe2698e49cc8cb067cab9cd391adc34feb169294f74b45893a2b5927e276e875822e97514b32dd326eabf4a50d3a
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
- # Get The Witcher 3 details
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`,`#find_screenshots`,`#find_stores`,`#find_reddit`,`#find_additions`,`#find_youtube`,`#find_twitch`
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
@@ -1,3 +1,3 @@
1
1
  module RawgApi
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-25 00:00:00.000000000 Z
11
+ date: 2020-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api_struct