Sha256: c5235b842e789433a70be346ea70faf4442c09983ecb1e5ef6f89e61e27f8525

Contents?: true

Size: 431 Bytes

Versions: 1

Compression:

Stored size: 431 Bytes

Contents

module Vedeu
  module API
    class Stream < Base
      def build
        attributes
      end

      def align(value)
        attributes[:align] = value
      end

      def text(value)
        attributes[:text] = value
      end

      def width(value)
        attributes[:width] = value
      end

      def attributes
        @_attributes ||= { colour: {}, style: [], text: '' }.merge!(@attributes)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.1.10 lib/vedeu/api/stream.rb