class StatModule::Detail
Public Class Methods
new(body, hash = nil)
click to toggle source
Calls superclass method
StatModule::JSONable::new
# File lib/detail.rb, line 6 def initialize(body, hash = nil) if hash.is_a? Hash super(hash) return end @body = body end
Public Instance Methods
body()
click to toggle source
# File lib/detail.rb, line 20 def body @body end
body=(body)
click to toggle source
# File lib/detail.rb, line 15 def body=(body) raise TypeException unless body.is_a?(String) @body = body end
trace()
click to toggle source
# File lib/detail.rb, line 33 def trace @trace end
trace=(trace)
click to toggle source
# File lib/detail.rb, line 24 def trace=(trace) raise TypeException unless trace.is_a?(Array) trace.each { |item| raise TypeException unless item.is_a?(StatModule::Location) raise DuplicateElementException if @trace.include?(item) @trace.push(item) } end