Class: Fictive::Choice

Inherits:
Object
  • Object
show all
Defined in:
lib/fictive/choice.rb

Instance Method Summary collapse

Constructor Details

#initialize(metadata) ⇒ Choice

Returns a new instance of Choice.



3
4
5
# File 'lib/fictive/choice.rb', line 3

def initialize()
  @metadata = 
end

Instance Method Details

#idObject



7
8
9
# File 'lib/fictive/choice.rb', line 7

def id
  @metadata.fetch(:id)
end