Exception: BaseCRM::ResourceError
- Defined in:
- lib/basecrm/errors.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Attributes inherited from BaseError
Instance Method Summary collapse
-
#initialize(error) ⇒ ResourceError
constructor
A new instance of ResourceError.
- #to_s ⇒ Object
Constructor Details
#initialize(error) ⇒ ResourceError
Returns a new instance of ResourceError.
31 32 33 34 35 36 |
# File 'lib/basecrm/errors.rb', line 31 def initialize(error) super @resource = @data[:resource] @field = @data[:field] end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
29 30 31 |
# File 'lib/basecrm/errors.rb', line 29 def field @field end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
29 30 31 |
# File 'lib/basecrm/errors.rb', line 29 def resource @resource end |
Instance Method Details
#to_s ⇒ Object
38 39 40 |
# File 'lib/basecrm/errors.rb', line 38 def to_s super + " resource=#{@resource} field=#{@field}" end |