Class: Scrab::Story

Inherits:
Object
  • Object
show all
Defined in:
lib/scrab/story.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStory

Returns a new instance of Story.



5
6
7
# File 'lib/scrab/story.rb', line 5

def initialize
  @scenarios = []
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/scrab/story.rb', line 2

def id
  @id
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/scrab/story.rb', line 2

def name
  @name
end

#narrativeObject

Returns the value of attribute narrative.



2
3
4
# File 'lib/scrab/story.rb', line 2

def narrative
  @narrative
end

#scenariosObject (readonly)

Returns the value of attribute scenarios.



3
4
5
# File 'lib/scrab/story.rb', line 3

def scenarios
  @scenarios
end