Class: HipTail::Message::Notification
Instance Attribute Summary collapse
#date, #from, #id, #mentions, #message, #raw, #text
Instance Method Summary
collapse
#initialize
Instance Attribute Details
#color ⇒ String
144
145
146
|
# File 'lib/hiptail/atom.rb', line 144
def color
@raw['color']
end
|
#html? ⇒ String
138
139
140
|
# File 'lib/hiptail/atom.rb', line 138
def html
message
end
|
#is_html? ⇒ Boolean
132
133
134
|
# File 'lib/hiptail/atom.rb', line 132
def is_html?
message_format == 'html'
end
|
#is_text? ⇒ Boolean
126
127
128
|
# File 'lib/hiptail/atom.rb', line 126
def is_text?
message_format == 'text'
end
|
120
121
122
|
# File 'lib/hiptail/atom.rb', line 120
def message_format
@raw['message_format']
end
|
Instance Method Details
#html ⇒ String
138
139
140
|
# File 'lib/hiptail/atom.rb', line 138
def html
message
end
|
#is_notification? ⇒ Boolean
116
|
# File 'lib/hiptail/atom.rb', line 116
def is_notification?; true; end
|
#is_talk? ⇒ Boolean
115
|
# File 'lib/hiptail/atom.rb', line 115
def is_talk?; false; end
|