Class: Scrab::Story
- Inherits:
-
Object
- Object
- Scrab::Story
- Defined in:
- lib/scrab/story.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#narrative ⇒ Object
Returns the value of attribute narrative.
-
#scenarios ⇒ Object
readonly
Returns the value of attribute scenarios.
Instance Method Summary collapse
-
#initialize ⇒ Story
constructor
A new instance of Story.
Constructor Details
#initialize ⇒ Story
Returns a new instance of Story.
5 6 7 |
# File 'lib/scrab/story.rb', line 5 def initialize @scenarios = [] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/scrab/story.rb', line 2 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/scrab/story.rb', line 2 def name @name end |
#narrative ⇒ Object
Returns the value of attribute narrative.
2 3 4 |
# File 'lib/scrab/story.rb', line 2 def narrative @narrative end |
#scenarios ⇒ Object (readonly)
Returns the value of attribute scenarios.
3 4 5 |
# File 'lib/scrab/story.rb', line 3 def scenarios @scenarios end |