Class: JAPI::Category
- Inherits:
-
Object
- Object
- JAPI::Category
- Defined in:
- lib/japi/category.rb
Instance Method Summary collapse
- #category_id ⇒ Object
- #clues ⇒ Object
- #clues_count ⇒ Object
-
#initialize(options = {}) ⇒ Category
constructor
A new instance of Category.
- #title ⇒ Object
Constructor Details
Instance Method Details
#category_id ⇒ Object
15 16 17 |
# File 'lib/japi/category.rb', line 15 def category_id @options["id"] end |
#clues ⇒ Object
23 24 25 26 |
# File 'lib/japi/category.rb', line 23 def clues return @options["clues"] unless @options["clues"].nil? @options["clues"] = Trebek.category(category_id).clues end |
#clues_count ⇒ Object
19 20 21 |
# File 'lib/japi/category.rb', line 19 def clues_count @options["clues_count"] end |
#title ⇒ Object
11 12 13 |
# File 'lib/japi/category.rb', line 11 def title @options["title"] end |