class HipchatAdapter

Attributes

body_text[RW]
errors[RW]
hipchat[RW]
hipchat_rooms[RW]

Private Instance Methods

errors?() click to toggle source
# File lib/yell_adapters/hipchat_adapter.rb, line 36
def errors?
  errors
end
format_body_text_to_html() click to toggle source
# File lib/yell_adapters/hipchat_adapter.rb, line 40
def format_body_text_to_html
  body_text.gsub!("\n", '<br>')
  prepend = errors? ? '<strong>Error!</strong>' : '<strong>Success!</strong>'
  self.body_text = [prepend, body_text].join '<br>'
end