Class: OpenEHR::AQL::Model::ObjectPath
- Inherits:
-
Object
- Object
- OpenEHR::AQL::Model::ObjectPath
- Defined in:
- lib/openehr/aql/model/object_path.rb
Overview
objectPath : pathPart (SYM_SLASH pathPart)* ;
Instance Attribute Summary collapse
-
#segments ⇒ Object
readonly
Returns the value of attribute segments.
Instance Method Summary collapse
-
#initialize(segments:) ⇒ ObjectPath
constructor
A new instance of ObjectPath.
- #to_s ⇒ Object
Constructor Details
#initialize(segments:) ⇒ ObjectPath
Returns a new instance of ObjectPath.
8 9 10 11 |
# File 'lib/openehr/aql/model/object_path.rb', line 8 def initialize(segments:) @segments = segments.freeze freeze end |
Instance Attribute Details
#segments ⇒ Object (readonly)
Returns the value of attribute segments.
6 7 8 |
# File 'lib/openehr/aql/model/object_path.rb', line 6 def segments @segments end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/openehr/aql/model/object_path.rb', line 13 def to_s segments.map(&:to_s).join('/') end |