Exception: SeoFriendly::SourceNotDefinedError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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

#objectObject (readonly)

Returns the value of attribute object.



7
8
9
# File 'lib/seo_friendly/exceptions.rb', line 7

def object
  @object
end