Exception: CIMI::Model::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- CIMI::Model::ValidationError
- Defined in:
- lib/cimi/models/base.rb
Instance Method Summary collapse
-
#code ⇒ Object
Report the ValidationError as HTTP 400 - Bad Request.
-
#initialize(attr_list, format) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #name ⇒ Object
Constructor Details
#initialize(attr_list, format) ⇒ ValidationError
Returns a new instance of ValidationError.
94 95 96 97 |
# File 'lib/cimi/models/base.rb', line 94 def initialize(attr_list, format) @lst = attr_list super("Required attributes not set: #{name}") end |
Instance Method Details
#code ⇒ Object
Report the ValidationError as HTTP 400 - Bad Request
100 101 102 |
# File 'lib/cimi/models/base.rb', line 100 def code 400 end |
#name ⇒ Object
104 105 106 |
# File 'lib/cimi/models/base.rb', line 104 def name @lst.join(',') end |