Class: CardPrinter::Story
- Inherits:
-
Object
- Object
- CardPrinter::Story
- Defined in:
- lib/card_printer/story.rb
Constant Summary collapse
- ATTRS =
story_type = feature|bug|chore|other
[:name, :description, :story_type, :estimate, :label]
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Story
constructor
A new instance of Story.
Constructor Details
#initialize(data = {}) ⇒ Story
Returns a new instance of Story.
9 10 11 12 13 |
# File 'lib/card_printer/story.rb', line 9 def initialize(data = {}) ATTRS.each do |attr_name| self.send(:"#{attr_name}=", data[attr_name] || data[attr_name.to_s]) end end |