Class: StixSchemaSpy::SpecialField
- Inherits:
-
Object
- Object
- StixSchemaSpy::SpecialField
- Defined in:
- lib/stix_schema_spy/models/special_field.rb
Instance Attribute Summary collapse
-
#documentation ⇒ Object
Returns the value of attribute documentation.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #attribute? ⇒ Boolean
- #element? ⇒ Boolean
-
#initialize(name) ⇒ SpecialField
constructor
A new instance of SpecialField.
Constructor Details
#initialize(name) ⇒ SpecialField
Returns a new instance of SpecialField.
8 9 10 11 |
# File 'lib/stix_schema_spy/models/special_field.rb', line 8 def initialize(name) @name = name @type = ExternalType.new("", "") end |
Instance Attribute Details
#documentation ⇒ Object
Returns the value of attribute documentation.
6 7 8 |
# File 'lib/stix_schema_spy/models/special_field.rb', line 6 def documentation @documentation end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/stix_schema_spy/models/special_field.rb', line 6 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/stix_schema_spy/models/special_field.rb', line 6 def type @type end |
Instance Method Details
#attribute? ⇒ Boolean
13 14 15 |
# File 'lib/stix_schema_spy/models/special_field.rb', line 13 def attribute? false end |
#element? ⇒ Boolean
17 18 19 |
# File 'lib/stix_schema_spy/models/special_field.rb', line 17 def element? true end |