Exception: Stix2::Exception::PropertyDefinitionSize
- Defined in:
- lib/stix2/exception.rb
Instance Method Summary collapse
-
#initialize(size) ⇒ PropertyDefinitionSize
constructor
A new instance of PropertyDefinitionSize.
- #message ⇒ Object
Constructor Details
#initialize(size) ⇒ PropertyDefinitionSize
105 106 107 |
# File 'lib/stix2/exception.rb', line 105 def initialize(size) @size = size end |
Instance Method Details
#message ⇒ Object
109 110 111 |
# File 'lib/stix2/exception.rb', line 109 def "Property 'definition' must contain a single key. Got #{size} instead" end |