Exception: SeoFriendly::SourceNotDefinedError
- Inherits:
-
StandardError
- Object
- StandardError
- SeoFriendly::SourceNotDefinedError
- Defined in:
- lib/seo_friendly/exceptions.rb
Constant Summary collapse
- MESSAGE =
'Unable to find seo rule %{policy_name} for %{object} class'
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(policy, object) ⇒ SourceNotDefinedError
constructor
A new instance of SourceNotDefinedError.
Constructor Details
#initialize(policy, object) ⇒ SourceNotDefinedError
Returns a new instance of SourceNotDefinedError.
9 10 11 12 |
# File 'lib/seo_friendly/exceptions.rb', line 9 def initialize(policy, object) super( MESSAGE % { policy_name: policy, object: object} ) @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
7 8 9 |
# File 'lib/seo_friendly/exceptions.rb', line 7 def object @object end |