Revised for Ruby 2.1, each recipe includes a discussion on why and how the solution works. You’ll find recipes suitable for all skill levels, from Ruby newbies to experts who need an occasional reference. With Ruby Cookbook, you’ll not only save time, but keep your brain percolating with new ideas as well.
Recipes cover:Data structures including strings, numbers, date and time, arrays, hashes, files and directoriesUsing Ruby’s code blocks, also known as closuresOOP features such as classes, methods, objects, and modulesXML and HTML, databases and persistence, and graphics and other formatsWeb development with Rails and SinatraInternet services, web services, and distributed programmingSoftware testing, debugging, packaging, and distributingMultitasking, multithreading, and extending Ruby with other languages
You’ll explore the concepts behind REST, learn different strategies for creating hypermedia-based APIs, and then put everything together with a step-by-step guide to designing a RESTful Web API.Examine API design strategies, including the collection pattern and pure hypermediaUnderstand how hypermedia ties representations together into a coherent APIDiscover how XMDP and ALPS profile formats can help you meet the Web API "semantic challenge"Learn close to two-dozen standardized hypermedia data formatsApply best practices for using HTTP in API implementationsCreate Web APIs with the JSON-LD standard and other the Linked Data approachesUnderstand the CoAP protocol for using REST in embedded systems