Class: Fictive::Choice
- Inherits:
-
Object
- Object
- Fictive::Choice
- Defined in:
- lib/fictive/choice.rb
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(metadata) ⇒ Choice
constructor
A new instance of Choice.
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
#id ⇒ Object
7 8 9 |
# File 'lib/fictive/choice.rb', line 7 def id @metadata.fetch(:id) end |