README.md in storyblok-2.0.1 vs README.md in storyblok-2.0.2
- old
+ new
@@ -17,11 +17,11 @@
# Requests only published stories
Storyblok::Client.new(version: 'published')
```
-### Load a Story
+### Load a story
```ruby
# Without cache
client = Storyblok::Client.new(token: 'YOUR_TOKEN')
@@ -32,11 +32,11 @@
# Get a story
client.story('home')
```
-### Load a list of Stories
+### Load a list of stories
```ruby
# Get all Stories that start with news
client.stories({
:starts_with => 'news'
@@ -61,10 +61,16 @@
:starts_with => 'news'
})
```
+### Load a list of links
+
+```ruby
+client.links
+```
+
## Generate a navigation tree
```ruby
tree = client.tree
@@ -81,9 +87,15 @@
end
puts '</li>'
end
puts '</ul>'
+```
+
+### Get the space info
+
+```ruby
+client.space
```
## How to flush the cache
Following an example of how to flush the client cache: