Exception: ConnectClient::EventDataValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- ConnectClient::EventDataValidationError
- Defined in:
- lib/connect_client/event.rb
Instance Attribute Summary collapse
-
#invalid_property_names ⇒ Object
readonly
Returns the value of attribute invalid_property_names.
Instance Method Summary collapse
-
#initialize(invalid_property_names) ⇒ EventDataValidationError
constructor
A new instance of EventDataValidationError.
- #message ⇒ Object
Constructor Details
#initialize(invalid_property_names) ⇒ EventDataValidationError
Returns a new instance of EventDataValidationError.
41 42 43 |
# File 'lib/connect_client/event.rb', line 41 def initialize(invalid_property_names) @invalid_property_names = invalid_property_names end |
Instance Attribute Details
#invalid_property_names ⇒ Object (readonly)
Returns the value of attribute invalid_property_names.
39 40 41 |
# File 'lib/connect_client/event.rb', line 39 def invalid_property_names @invalid_property_names end |
Instance Method Details
#message ⇒ Object
45 46 47 48 49 50 |
# File 'lib/connect_client/event.rb', line 45 def = ['The following properties use the reserved prefix tp_:'] + @invalid_property_names.map do |property_name| "->#{property_name}" end .join "\n" end |