class RIPE::ObjectError
Public Class Methods
new(hash)
click to toggle source
# File lib/ripe/object_error.rb, line 4 def initialize(hash) @hash = hash end
Public Instance Methods
args()
click to toggle source
# File lib/ripe/object_error.rb, line 20 def args if @hash['args'].is_a?(Array) @hash['args'].map { |a| a['value'] } else [] end end
attribute()
click to toggle source
# File lib/ripe/object_error.rb, line 16 def attribute @hash['attribute'] end
severity()
click to toggle source
# File lib/ripe/object_error.rb, line 12 def severity @hash['severity'] end
text()
click to toggle source
# File lib/ripe/object_error.rb, line 8 def text @hash['text'] % args end