lib/vedeu/models/line.rb in vedeu-0.2.0 vs lib/vedeu/models/line.rb in vedeu-0.2.1

- old
+ new

@@ -8,10 +8,12 @@ include Coercions include Presentation attr_reader :attributes, :parent + # Builds up a new Line object and returns the attributes. + # # @param attributes [Hash] # @param block [Proc] # @return [Hash] def self.build(attributes = {}, &block) new(attributes, &block).attributes @@ -35,10 +37,10 @@ # Returns a collection of streams associated with this line. # # @return [Array] def streams - @streams ||= Stream.coercer(attributes[:streams], parent) + @streams ||= Stream.coercer(attributes[:streams]) end private # Convenience method to provide Presentation with a consistent interface.