# File 'lib/tinycms/blogs/api.rb', line 18defself.get(blog_id)Retriable.retriabledoresponse=client.get("/api/blogs/#{blog_id}")Tinycms::Blogs::Mapper.map(response.body)endend
.get_all ⇒ Object
8
9
10
11
12
13
14
15
16
# File 'lib/tinycms/blogs/api.rb', line 8defself.get_allRetriable.retriabledoresponse=client.get("/api/blogs")blogs=response.bodyblogs.mapdo|blog_response|Tinycms::Blogs::Mapper.map(blog_response)endendend