Method: JAPI::Clue#initialize

Defined in:
lib/japi/clue.rb

#initialize(options = {}) ⇒ Clue

Returns a new instance of Clue.

Parameters:

  • options (Hash{String, Symbol => Fixnum, String, DateTime, Hash}) (defaults to: {})

Options Hash (options):

  • :value (Fixnum)

    amount in dollars of question

  • :id (Fixnum)

    clue id

  • :category_id (Fixnum)

    id of the clue’s category

  • :game_id (Fixnum)

    id of the game where the clue appeared

  • :category (Hash)

    Hash containing Category info. see JAPI::Category

  • :question (String)

    the question text

  • :answer (String)

    the answer text



16
17
18
# File 'lib/japi/clue.rb', line 16

def initialize(options = {})
  @options = options
end