Class: Crab::DryRun::Story

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

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Story

Returns a new instance of Story.



77
78
79
80
81
# File 'lib/crab/story.rb', line 77

def initialize(opts)
  puts "Would create story with #{opts.inspect}"

  @name = opts[:name]
end

Instance Method Details

#descriptionObject



95
96
97
# File 'lib/crab/story.rb', line 95

def description
  ""
end

#formatted_idObject



87
88
89
# File 'lib/crab/story.rb', line 87

def formatted_id
  "USXXXX"
end

#nameObject



83
84
85
# File 'lib/crab/story.rb', line 83

def name
  @name
end

#scenariosObject



99
100
101
# File 'lib/crab/story.rb', line 99

def scenarios
  []
end

#stateObject



91
92
93
# File 'lib/crab/story.rb', line 91

def state
  "grooming"
end