class Myra::Violation

Attributes

message[R]
property[R]

Public Class Methods

from_hash(violation) click to toggle source
# File lib/myra/objects/violation.rb, line 11
def self.from_hash(violation)
  new(violation['propertyPath'], violation['message'])
end
new(property, message) click to toggle source
# File lib/myra/objects/violation.rb, line 6
def initialize(property, message)
  @property = property
  @message = message
end