class Redwood::Chunk::CryptoNotice
Attributes
lines[R]
patina_text[R]
status[R]
unknown_fingerprint[R]
Public Class Methods
new(status, description, lines=[], unknown_fingerprint=nil)
click to toggle source
# File lib/sup/message_chunks.rb, line 312 def initialize status, description, lines=[], unknown_fingerprint=nil @status = status @patina_text = description @lines = lines @unknown_fingerprint = unknown_fingerprint end
Public Instance Methods
color()
click to toggle source
# File lib/sup/message_chunks.rb, line 327 def color; patina_color end
expandable?()
click to toggle source
# File lib/sup/message_chunks.rb, line 331 def expandable?; !@lines.empty? end
indexable?()
click to toggle source
# File lib/sup/message_chunks.rb, line 332 def indexable?; false end
inlineable?()
click to toggle source
# File lib/sup/message_chunks.rb, line 329 def inlineable?; false end
patina_color()
click to toggle source
# File lib/sup/message_chunks.rb, line 319 def patina_color case status when :valid then :cryptosig_valid_color when :valid_untrusted then :cryptosig_valid_untrusted_color when :invalid then :cryptosig_invalid_color else :cryptosig_unknown_color end end
quotable?()
click to toggle source
# File lib/sup/message_chunks.rb, line 330 def quotable?; false end
viewable?()
click to toggle source
# File lib/sup/message_chunks.rb, line 333 def viewable?; false end