Class: Yema::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/yema/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rule, resource) ⇒ Error

Returns a new instance of Error.



7
8
9
# File 'lib/yema/error.rb', line 7

def initialize(rule, resource)
  @rule, @resource = rule, resource
end

Instance Attribute Details

#resourceObject (readonly)

Returns the value of attribute resource.



5
6
7
# File 'lib/yema/error.rb', line 5

def resource
  @resource
end

#ruleObject (readonly)

Returns the value of attribute rule.



5
6
7
# File 'lib/yema/error.rb', line 5

def rule
  @rule
end