Sha256: 8e4b26ddebefe23166d8ded23635782ae280345a0dd4c0303aa92f3656f9c225
Contents?: true
Size: 353 Bytes
Versions: 4
Compression:
Stored size: 353 Bytes
Contents
require 'oj' require 'virtus' require_relative 'presentation' require_relative 'stream_collection' module Vedeu class Line include Virtus.model include Presentation attribute :streams, StreamCollection def to_json Oj.dump(attributes, mode: :compat) end def to_s [colour, style, streams].join end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.29 | lib/vedeu/models/line.rb |
vedeu-0.0.28 | lib/vedeu/models/line.rb |
vedeu-0.0.27 | lib/vedeu/models/line.rb |
vedeu-0.0.26 | lib/vedeu/models/line.rb |