Exception: Kingsman::Models::MissingAttribute
- Inherits:
-
StandardError
- Object
- StandardError
- Kingsman::Models::MissingAttribute
- Defined in:
- lib/kingsman/models.rb
Instance Method Summary collapse
-
#initialize(attributes) ⇒ MissingAttribute
constructor
A new instance of MissingAttribute.
- #message ⇒ Object
Constructor Details
#initialize(attributes) ⇒ MissingAttribute
Returns a new instance of MissingAttribute.
6 7 8 |
# File 'lib/kingsman/models.rb', line 6 def initialize(attributes) @attributes = attributes end |
Instance Method Details
#message ⇒ Object
10 11 12 |
# File 'lib/kingsman/models.rb', line 10 def "The following attribute(s) is (are) missing on your model: #{@attributes.join(", ")}" end |