Class: ODRL::Profile::ProfileElement
- Inherits:
-
Object
- Object
- ODRL::Profile::ProfileElement
- Defined in:
- lib/odrl/profile/builder.rb
Overview
end of Class Builder
Direct Known Subclasses
Action, AssetRelation, LeftOperand, Operator, PartyFunction, Policy, RightOperand, Rule
Instance Attribute Summary collapse
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#label ⇒ Object
Returns the value of attribute label.
-
#parent_class ⇒ Object
Returns the value of attribute parent_class.
-
#parent_property ⇒ Object
Returns the value of attribute parent_property.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri:, label:, definition:, parent_class: nil, parent_property: nil, **_args) ⇒ ProfileElement
constructor
parent_class => subClassOf parent_property => subPropertyOf.
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
#definition ⇒ Object
Returns the value of attribute definition.
160 161 162 |
# File 'lib/odrl/profile/builder.rb', line 160 def definition @definition end |
#label ⇒ Object
Returns the value of attribute label.
160 161 162 |
# File 'lib/odrl/profile/builder.rb', line 160 def label @label end |
#parent_class ⇒ Object
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_property ⇒ Object
Returns the value of attribute parent_property.
160 161 162 |
# File 'lib/odrl/profile/builder.rb', line 160 def parent_property @parent_property end |
#uri ⇒ Object
Returns the value of attribute uri.
160 161 162 |
# File 'lib/odrl/profile/builder.rb', line 160 def uri @uri end |