Class: HipTail::Message::Notification

Inherits:
HipTail::Message show all
Defined in:
lib/hiptail/atom.rb

Instance Attribute Summary collapse

Attributes inherited from HipTail::Message

#date, #from, #id, #mentions, #message, #raw, #text

Instance Method Summary collapse

Methods inherited from HipTail::Message

#initialize

Constructor Details

This class inherits a constructor from HipTail::Message

Instance Attribute Details

#colorString (readonly)

Returns:

  • (String)


144
145
146
# File 'lib/hiptail/atom.rb', line 144

def color
  @raw['color']
end

#html?String (readonly)

Returns:

  • (String)


138
139
140
# File 'lib/hiptail/atom.rb', line 138

def html
  message
end

#is_html?Boolean (readonly)

Returns:

  • (Boolean)


132
133
134
# File 'lib/hiptail/atom.rb', line 132

def is_html?
  message_format == 'html'
end

#is_text?Boolean (readonly)

Returns:

  • (Boolean)


126
127
128
# File 'lib/hiptail/atom.rb', line 126

def is_text?
  message_format == 'text'
end

#message_formatString (readonly)

Returns:

  • (String)


120
121
122
# File 'lib/hiptail/atom.rb', line 120

def message_format
  @raw['message_format']
end

Instance Method Details

#htmlString

Returns:

  • (String)


138
139
140
# File 'lib/hiptail/atom.rb', line 138

def html
  message
end

#is_notification?Boolean

Returns:

  • (Boolean)


116
# File 'lib/hiptail/atom.rb', line 116

def is_notification?; true;  end

#is_talk?Boolean

Returns:

  • (Boolean)


115
# File 'lib/hiptail/atom.rb', line 115

def is_talk?;         false; end