-
-
Notifications
You must be signed in to change notification settings - Fork 0
Models: Bible
The Bible Classes are not required. They're just an ORM-style convenience for working with data.
Kind: global typedef
Kind: global typedef
-
Bible :
undefined
-
.books :
Array.<Book>
- .refreshData()
-
.getBooks(params) ⇒
Promise.<Array.<Book>>
-
.prepareRequest(params, requestId) ⇒
object
-
.getBook(params) ⇒
Promise.<Book>
-
.getChapter(params) ⇒
Promise.<Chapter>
-
.getPassage(params) ⇒
Promise.<Passage>
-
.getVerse(params) ⇒
Promise.<Verse>
-
.books :
All books in the bible. populated after running refreshData()
Kind: instance property of Bible
Access: public
Retrieves data from API and populates data property and books property.
Kind: instance method of Bible
Gets all of the books associated with the Bible
Kind: instance method of Bible
Returns: Promise.<Array.<Book>>
-
Shallow copies of books
Param | Type | Description |
---|---|---|
params | BooksRequestParam |
parameters for retrieving books |
formats a request object so it to have the bible's id as id
Kind: instance method of Bible
Returns: object
-
request object with bibleId as id
Param | Type | Description |
---|---|---|
params | object |
parameters to submit to a request |
requestId | string |
dude idk |
Gets a book from the Bible
Kind: instance method of Bible
Returns: Promise.<Book>
-
Data for book of the bible
Param | Type | Description |
---|---|---|
params |
BookRequestParam | string
|
either an object with id or bookId, or a string that is the bookId |
Gets a chapter by Id from the Bible
Kind: instance method of Bible
Returns: Promise.<Chapter>
-
fully-populated chapter object
Param | Type | Description |
---|---|---|
params |
ChapterRequestParam | string
|
options to pass into request |
Gets a passage (range of verses)
Kind: instance method of Bible
Returns: Promise.<Passage>
-
fully-populated chapter object
Param | Type | Description |
---|---|---|
params |
PassageRequestParam | string
|
options to pass into request |
Gets a verse by Id from the Bible
Kind: instance method of Bible
Returns: Promise.<Verse>
-
fully-populated verse object
Param | Type | Description |
---|---|---|
params |
VerseRequestParam | string
|
options to pass into request |
Kind: global class
Extends: BibleEntity
-
Book ⇐
BibleEntity
- new Book()
-
.chapters :
Array.<Chapter>
-
.name :
string
-
.longName :
string
-
.abbreviation :
string
-
.refreshData() ⇒
Promise.<void>
-
.getChapters([params]) ⇒
Promise.<Array.<Chapter>>
Book of a Bible
All chapters in the book. populated after running refreshData()
Kind: instance property of Book
Access: public
Name of the book
Kind: instance property of Book
Full name (or short description)
Kind: instance property of Book
Abbreviation used by the API
Kind: instance property of Book
Populates data if constructed with a string, or retrieves data not present at instantiation This will load the chapters property with chapters
Kind: instance method of Book
Retrieves all chapters for this book
Kind: instance method of Book
Returns: Promise.<Array.<Chapter>>
-
an array of chapters in the book
Param | Type | Description |
---|---|---|
[params] | ChapterRequestParam |
request parameters |
BookResponse : BookResponse
Kind: global typedef
Kind: global class
Extends: BibleEntity
-
Chapter ⇐
BibleEntity
- new Chapter()
-
.name :
string
|undefined
-
.bookId :
string
-
.number :
number
-
.content :
string
-
.verseCount :
number
-
.verseList :
Array.<string>
-
.previousChapter :
Chapter
|null
-
.nextChapter :
Chapter
|null
-
.getPrevious() ⇒
Chapter
|null
-
.getNext() ⇒
Chapter
|null
-
.refreshData() ⇒
Promise.<void>
Chapter of a Book
Name of book and chapter, or undefined if data not refreshed
Kind: instance property of Chapter
id for the book which contains this chapter
Kind: instance property of Chapter
chapter number. Intros will return 0
Kind: instance property of Chapter
Trimmed raw content from API if data has been refreshed or loaded
Kind: instance property of Chapter
number of verses in the chapter or 0 if data has not been refreshed or loaded
Kind: instance property of Chapter
Array of verses if data has been refreshed or loaded
Kind: instance property of Chapter
chapter.previousChapter : Chapter
| null
The previous chapter in the book, or null if data is not refreshed/loaded
Kind: instance property of Chapter
chapter.nextChapter : Chapter
| null
The next chapter in the book, or null if data is not refreshed/loaded
Kind: instance property of Chapter
chapter.getPrevious() ⇒ Chapter
| null
gets previous chapter in the book
Kind: instance method of Chapter
Returns: Chapter
| null
-
preceding chapter in book
chapter.getNext() ⇒ Chapter
| null
gets next chapter in the book
Kind: instance method of Chapter
Returns: Chapter
| null
-
succeeding chapter in book
Populates data if constructed with a string, or retrieves data not present at instantiation This will load the content, verses, and previous/nextChapters properties
Kind: instance method of Chapter
ChapterResponse : ChapterResponse
Kind: global typedef
Kind: global class
Extends: BibleEntity
-
Verse ⇐
BibleEntity
- new Verse()
-
.name :
string
|undefined
-
.bookId :
string
-
.chapterId :
string
-
.number :
number
-
.chapter :
Chapter
-
.content :
string
-
.previousVerse :
Chapter
|null
-
.nextVerse :
Chapter
|null
-
.getPrevious() ⇒
Verse
|null
-
.getNext() ⇒
Verse
|null
-
.refreshData() ⇒
Promise.<void>
Verse of a Chapter
Name of book and chapter, or undefined if data not refreshed
Kind: instance property of Verse
id for the book which contains this chapter
Kind: instance property of Verse
id for the chapter which contains this chapter
Kind: instance property of Verse
chapter number. Intros will return 0
Kind: instance property of Verse
Chapter that contains the verse
Kind: instance property of Verse
Trimmed raw content from API if data has been refreshed or loaded
Kind: instance property of Verse
The previous verse in the chapter, or null if data is not refreshed/loaded
Kind: instance property of Verse
The next verse in the chapter, or null if data is not refreshed/loaded
Kind: instance property of Verse
verse.getPrevious() ⇒ Verse
| null
gets previous verse in the book
Kind: instance method of Verse
Returns: Verse
| null
-
preceding verse in chapter
verse.getNext() ⇒ Verse
| null
gets next verse in the book
Kind: instance method of Verse
Returns: Verse
| null
-
succeeding verse in chapter
Populates data if constructed with a string, or retrieves data not present at instantiation This will load the content, verses, and previous/nextChapters properties
Kind: instance method of Verse
VerseResponse : VerseResponse
Kind: global typedef
Kind: global class
Extends: BibleEntity
-
Passage ⇐
BibleEntity
- new Passage()
-
.name :
string
|undefined
-
.firstVerseId :
string
-
.lastVerseId :
string
-
.bookId :
string
-
.chapterIds :
Array.<string>
-
.chapters :
Array.<string>
-
.verseCount :
number
-
.verseList :
Array.<string>
-
.content :
string
-
.refreshData() ⇒
Promise.<void>
Passage of a Bible
Name of book and chapter, or undefined if data not refreshed
Kind: instance property of Passage
Id of the first verse in the passage
Kind: instance property of Passage
Id of the last verse in the passage
Kind: instance property of Passage
id for the book which contains this passage
Kind: instance property of Passage
ids for the chapters the passage spans
Kind: instance property of Passage
Chapters the passage spans
Kind: instance property of Passage
number of verses in the chapter or 0 if data has not been refreshed or loaded
Kind: instance property of Passage
Array of verses if data has been refreshed or loaded
Kind: instance property of Passage
Trimmed raw content from API if data has been refreshed or loaded
Kind: instance property of Passage
Populates data if constructed with a string, or retrieves data not present at instantiation This will load the content, verses, and previous/nextChapters properties
Kind: instance method of Passage
PassageResponse : PassageResponse
Kind: global typedef