Last active
August 29, 2015 14:24
-
-
Save VoronoyAlexandr/5b80adc291cb892526fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CustomHash | |
| def hash_tree | |
| { | |
| "readers" => { | |
| "Ivan Testenko" => { | |
| "pages" => 328, | |
| "books" => 1, | |
| "authors" => ["Leo Tolstoy"] | |
| }, | |
| "Sasha Voronoy" => { | |
| "pages" => 200, | |
| "books" => 1, | |
| "authors" => ["Oscar Wilde"] | |
| }, | |
| "Dasha Babybay" => { | |
| "pages" => 400, | |
| "books" => 1, | |
| "authors" => ["Oscar Wilde"] | |
| }, | |
| "Фантомас Анонимович" => { | |
| "pages" => 0, | |
| "books" => 0, | |
| "authors" => [] | |
| } | |
| }, | |
| "book_titles" => { | |
| "War and Peace" => { | |
| "author" => ["Leo Tolstoy"], | |
| "reading_hours" => 20.5, | |
| "readers" => ["Ivan Testenko"] | |
| }, | |
| "Sherlok" => | |
| {"author" => ["Oscar Wilde"], | |
| "reading_hours" => 8.0, | |
| "readers" => ["Sasha Voronoy"] | |
| }, | |
| "Sherlok Comeback" => { | |
| "author" => ["Oscar Wilde"], | |
| "reading_hours" => 20.0, | |
| "readers" => ["Dasha Babybay"] | |
| }, | |
| "Explanatory Dictionary" => { | |
| "author" => ["Vladimir Dal"], | |
| "reading_hours" => 0, | |
| "readers" => [] | |
| } | |
| }, | |
| "authors" => { | |
| "Leo Tolstoy" => { | |
| "pages" => 328, | |
| "readers" => 1, | |
| "books" => 1 | |
| }, | |
| "Oscar Wilde" => { | |
| "pages" => 600, | |
| "readers" => 2, | |
| "books" => 2} | |
| }, | |
| "notification" => { | |
| "Ivan Testenko" => { | |
| "book" => "War and Peace", | |
| "author" => "Leo Tolstoy", | |
| "return_hours" => 48.0, | |
| "penya" => 0.16, | |
| "current_page" => 328, | |
| "hours_to_finish" => 184.5 | |
| }, | |
| "Sasha Voronoy" => { | |
| "book" => "Sherlok", | |
| "author" => "Oscar Wilde", | |
| "return_hours" => 48.0, | |
| "penya" => 0.05, | |
| "current_page" => 200, | |
| "hours_to_finish" => 56.0 | |
| }, | |
| "Dasha Babybay" => { | |
| "book" => "Sherlok Comeback", | |
| "author" => "Oscar Wilde", | |
| "return_hours" => 48.0, | |
| "penya" => 0.02, | |
| "current_page" => 400, | |
| "hours_to_finish" => 17.5 | |
| } | |
| } | |
| } | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment