Class: Vedeu::Stream

Inherits:
Object
  • Object
show all
Includes:
Presentation, Style
Defined in:
lib/vedeu/models/stream.rb

Instance Method Summary collapse

Methods included from Style

#style, #style_original

Instance Method Details

#to_jsonObject



15
16
17
18
19
20
21
# File 'lib/vedeu/models/stream.rb', line 15

def to_json
  {
    colour: colour,
    style:  style_original,
    text:   text
  }.to_json
end

#to_s(options = {}) ⇒ Object



23
24
25
# File 'lib/vedeu/models/stream.rb', line 23

def to_s(options = {})
  [colour, style, text].join
end