class Shaf::Profile::Attribute
Attributes
doc[R]
href[R]
name[R]
parent[R]
type[R]
Public Class Methods
new(name, **opts)
click to toggle source
# File lib/shaf/profile/attribute.rb, line 12 def initialize(name, **opts) @name = name.to_sym @doc = opts[:doc].freeze @href = opts[:href].freeze @type = opts[:type]&.to_s @parent = opts[:parent] end
Public Instance Methods
attributes()
click to toggle source
# File lib/shaf/profile/attribute.rb, line 20 def attributes @attributes ||= [] end
relations()
click to toggle source
# File lib/shaf/profile/attribute.rb, line 24 def relations @relations ||= [] end