ProverbsNIV Gem
A gem that consumes the Proverbs (NIV) endpoints from Book of Proverbs web app.
Additional gem information (i.e. download count, etc.) also available here.
Getting Started
- Add to Gemfile
gem 'proverbs_niv'
- Run $ bundle install
- Add
require 'proverbs_niv'
- Initialize library:
ProverbsNiv.init
- Call any available method (examples listed below)
Available methods:
-
Returns all chapters of Proverbs:
@chapter_nums = ProverbsNiv.getAllChapterNumbers
-
Returns content of all chapters of Proverbs:
@proverbs_content = ProverbsNiv.getContentOfAllChapters
-
Returns recurrence count of each word (with NO stop words) for all chapters:
@proverbs_rec_count_no_sw = ProverbsNiv.getRecurCountNoSwAllChapters
-
Returns recurrence count of each word (with stop words) for all chapters:
@proverbs_rec_count_sw = ProverbsNiv.getRecurCountSwAllChapters
-
Returns chapters and verses of all of Proverbs:
@proverbs_verses = ProverbsNiv.getVersesOfAllChapters
-
Returns chapter content of passed in chapter. For example: passing 1 in for chapter 1:
@chapter_content = ProverbsNiv.getChapterContent(1)
-
Returns all verses of passed in chapter. For example: passing 1 in for chapter 1:
@chapter_verses = ProverbsNiv.getChapterVerses(1)
-
Returns recurrence count (with NO stop words) for passed in chapter. For example: passing 1 in for chapter 1:
@chapter_word_count_no_sw = ProverbsNiv.getRecurCountNoSw(1)
-
Returns recurrence count (with stop words) for passed in chapter. For example: passing 1 in for chapter 1:
@chapter_word_count_sw = ProverbsNiv.getRecurCountSw(1)