class StixSchemaSpy::Attribute
Public Instance Methods
attribute?()
click to toggle source
# File lib/stix_schema_spy/models/attribute.rb, line 7 def attribute? true end
name()
click to toggle source
Attribute
names have an @ prefixed
# File lib/stix_schema_spy/models/attribute.rb, line 12 def name "@#{super}" end
use()
click to toggle source
# File lib/stix_schema_spy/models/attribute.rb, line 16 def use @xml.attributes['use'] ? @xml.attributes['use'].value : "optional" end