Class: ODRL::Profile::ProfileElement

Inherits:
Object
  • Object
show all
Defined in:
lib/odrl/profile/builder.rb

Overview

end of Class Builder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri:, label:, definition:, parent_class: nil, parent_property: nil, **_args) ⇒ ProfileElement

parent_class => subClassOf parent_property => subPropertyOf



164
165
166
167
168
169
170
# File 'lib/odrl/profile/builder.rb', line 164

def initialize(uri:, label:, definition:, parent_class: nil, parent_property: nil, **_args)
  @uri = uri
  @label = label
  @definition = definition
  @parent_class = parent_class
  @parent_property = parent_property
end

Instance Attribute Details

#definitionObject

Returns the value of attribute definition.



160
161
162
# File 'lib/odrl/profile/builder.rb', line 160

def definition
  @definition
end

#labelObject

Returns the value of attribute label.



160
161
162
# File 'lib/odrl/profile/builder.rb', line 160

def label
  @label
end

#parent_classObject

Returns the value of attribute parent_class.



160
161
162
# File 'lib/odrl/profile/builder.rb', line 160

def parent_class
  @parent_class
end

#parent_propertyObject

Returns the value of attribute parent_property.



160
161
162
# File 'lib/odrl/profile/builder.rb', line 160

def parent_property
  @parent_property
end

#uriObject

Returns the value of attribute uri.



160
161
162
# File 'lib/odrl/profile/builder.rb', line 160

def uri
  @uri
end