Exception: PriceHubble::EntityInvalid
- Inherits:
-
EntityError
- Object
- StandardError
- EntityError
- PriceHubble::EntityInvalid
- Defined in:
- lib/price_hubble/errors.rb
Overview
Raised when the record is invalid, due to a response.
Instance Attribute Summary collapse
-
#entity ⇒ Object
readonly
Returns the value of attribute entity.
Instance Method Summary collapse
-
#initialize(message = nil, entity = nil) ⇒ EntityInvalid
constructor
Create a new instance of the error.
Constructor Details
#initialize(message = nil, entity = nil) ⇒ EntityInvalid
Create a new instance of the error.
53 54 55 56 57 58 |
# File 'lib/price_hubble/errors.rb', line 53 def initialize( = nil, entity = nil) @entity = entity ||= "Invalid #{entity}" super() end |
Instance Attribute Details
#entity ⇒ Object (readonly)
Returns the value of attribute entity.
47 48 49 |
# File 'lib/price_hubble/errors.rb', line 47 def entity @entity end |