class BMT::Step
Attributes
description[R]
key[R]
methodology[R]
title[R]
Public Class Methods
new(methodology:, attributes:)
click to toggle source
# File lib/bmt/step.rb, line 5 def initialize(methodology:, attributes:) @methodology = methodology @key = attributes['key'] @title = attributes['title'] @description = attributes['description'] @items_data = attributes['items'] end
Public Instance Methods
items()
click to toggle source
# File lib/bmt/step.rb, line 13 def items @items ||= @items_data.map do |item_data| Item.new( step: self, attributes: item_data ) end end