Class: StixSchemaSpy::SpecialField

Inherits:
Object
  • Object
show all
Defined in:
lib/stix_schema_spy/models/special_field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#documentationObject

Returns the value of attribute documentation.



6
7
8
# File 'lib/stix_schema_spy/models/special_field.rb', line 6

def documentation
  @documentation
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/stix_schema_spy/models/special_field.rb', line 6

def name
  @name
end

#typeObject

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

Returns:

  • (Boolean)


13
14
15
# File 'lib/stix_schema_spy/models/special_field.rb', line 13

def attribute?
  false
end

#element?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/stix_schema_spy/models/special_field.rb', line 17

def element?
  true
end