lib/eddy/schema/loop_summary.rb in eddy-0.5.0 vs lib/eddy/schema/loop_summary.rb in eddy-0.5.1

- old
+ new

@@ -3,11 +3,11 @@ # A repeated collection of Segments and/or other Loops. Used in Companion Guides. class LoopSummary # A unique string used to identify the Loop within its Transaction Set. # @return [String] - attr_accessor :loop_id + attr_accessor :id # Number of times a particular Loop may be repeated. # @return [Integer] attr_accessor :repeat # *Syntax*, *Semantic*, or *Comment* notes on a Loop. # @return [String] @@ -29,11 +29,11 @@ # @param params [Hash] # @return [self] def self.create(params = {}) l = LoopSummary.new - l.loop_id = params[:loop_id] + l.id = params[:loop_id] l.repeat = params[:repeat] l.notes = params[:notes] l.level = params[:level] l.req = params[:req] l.process_components(params[:components]) @@ -68,10 +68,10 @@ def doc_comment(header: true) comps = "" self.components.each do |comp| case comp when Eddy::Schema::SegmentSummary then comps << " - #{comp.id.upcase}\n" - when Eddy::Schema::LoopSummary then comps << " - #{comp.loop_id.upcase} (loop)\n" + when Eddy::Schema::LoopSummary then comps << " - #{comp.id.upcase} (loop)\n" end end parts = [] parts << "### Loop Summary:\n" if header parts << <<~YARD.strip