Class: Yema::Error
- Inherits:
-
Object
- Object
- Yema::Error
- Defined in:
- lib/yema/error.rb
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#rule ⇒ Object
readonly
Returns the value of attribute rule.
Instance Method Summary collapse
-
#initialize(rule, resource) ⇒ Error
constructor
A new instance of Error.
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
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
5 6 7 |
# File 'lib/yema/error.rb', line 5 def resource @resource end |
#rule ⇒ Object (readonly)
Returns the value of attribute rule.
5 6 7 |
# File 'lib/yema/error.rb', line 5 def rule @rule end |