Class: JAPI::Clue
- Inherits:
-
Object
- Object
- JAPI::Clue
- Defined in:
- lib/japi/clue.rb
Instance Method Summary collapse
- #answer ⇒ Object
- #category ⇒ Object
- #category_id ⇒ Object
- #clue_id ⇒ Object
- #game_id ⇒ Object
-
#initialize(options = {}) ⇒ Clue
constructor
A new instance of Clue.
- #question ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Clue
Returns a new instance of Clue.
4 5 6 |
# File 'lib/japi/clue.rb', line 4 def initialize( = {}) @options = end |
Instance Method Details
#answer ⇒ Object
32 33 34 |
# File 'lib/japi/clue.rb', line 32 def answer @options["answer"] end |
#category ⇒ Object
20 21 22 |
# File 'lib/japi/clue.rb', line 20 def category Category.new(@options["category"]) end |
#category_id ⇒ Object
16 17 18 |
# File 'lib/japi/clue.rb', line 16 def category_id @options["category_id"] end |
#clue_id ⇒ Object
12 13 14 |
# File 'lib/japi/clue.rb', line 12 def clue_id @options["id"] end |
#game_id ⇒ Object
24 25 26 |
# File 'lib/japi/clue.rb', line 24 def game_id @options["game_id"] end |
#question ⇒ Object
28 29 30 |
# File 'lib/japi/clue.rb', line 28 def question @options["question"] end |
#value ⇒ Object
8 9 10 |
# File 'lib/japi/clue.rb', line 8 def value @options["value"] end |