class StixSchemaSpy::ExternalType
Attributes
name[R]
Public Class Methods
new(prefix, name)
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 7 def initialize(prefix, name) @prefix = prefix @name = name end
Public Instance Methods
abstract?()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 37 def abstract? false end
attributes()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 65 def attributes [] end
child_types()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 33 def child_types [] end
documentation()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 53 def documentation "" end
elements()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 69 def elements [] end
fields()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 61 def fields [] end
full_name()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 45 def full_name if prefix && prefix.length > 0 "#{prefix}:#{name}" else name end end
has_example?()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 57 def has_example? false end
has_own_fields?()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 41 def has_own_fields? false end
own_usages()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 25 def own_usages [] end
prefix()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 12 def prefix @prefix || "" end
url()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 73 def url nil end
usages()
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 21 def usages [] end
use(by)
click to toggle source
For compatibility w/ normal types
# File lib/stix_schema_spy/models/external_type.rb, line 17 def use(by) return self end
use_parent(child)
click to toggle source
# File lib/stix_schema_spy/models/external_type.rb, line 29 def use_parent(child) self end