README.md in itch_client-0.3.0 vs README.md in itch_client-0.4.0
- old
+ new
@@ -169,10 +169,31 @@
client.game(12345).css
#=> body { background-color: orange; }
client.game(12345).css = "body { background-color: green; }"
```
+### Reviews
+
+Fetch current reviews
+
+```ruby
+reviews = client.game(12345).reviews.list
+#=>
+[
+ #<Itch::Review:0x0000557aa98c7930
+ @id="123456789",
+ @user_name="Billiam",
+ @user_id="billiam",
+ @date=<DateTime: 2022-04-03T10:02:00+00:00>,
+ @stars=4,
+ @review=[
+ "I really like this game",
+ "So much that I've added a second paragraph"
+ ],
+]
+```
+
### Rewards
Fetch reward CSV data
```ruby
@@ -250,10 +271,11 @@
filtered_rewards = rewards.select do |reward|
reward.amount > 5
end
client.game(12345).rewards.save(filtered_rewards)
```
-### Bundles
+
+## Bundles
Fetch current bundles
```ruby
client.bundles.list