class HipTail::Message::Notification

Public Instance Methods

color() click to toggle source

@attribute [r] color @return [String]

# File lib/hiptail/atom.rb, line 144
def color
  @raw['color']
end
html() click to toggle source

@attribute [r] html? @return [String]

# File lib/hiptail/atom.rb, line 138
def html
  message
end
is_html?() click to toggle source

@attribute [r] is_html? @return [Boolean]

# File lib/hiptail/atom.rb, line 132
def is_html?
  message_format == 'html'
end
is_notification?() click to toggle source
# File lib/hiptail/atom.rb, line 116
def is_notification?; true;  end
is_talk?() click to toggle source
# File lib/hiptail/atom.rb, line 115
def is_talk?;         false; end
is_text?() click to toggle source

@attribute [r] is_text? @return [Boolean]

# File lib/hiptail/atom.rb, line 126
def is_text?
  message_format == 'text'
end
message_format() click to toggle source

@attribute [r] message_format @return [String]

# File lib/hiptail/atom.rb, line 120
def message_format
  @raw['message_format']
end