Class: Valkyrie::Persistence::Fedora::Persister::ModelConverter::OrderedProperties::NestedProperty
- Inherits:
-
Object
- Object
- Valkyrie::Persistence::Fedora::Persister::ModelConverter::OrderedProperties::NestedProperty
- Defined in:
- lib/valkyrie/persistence/fedora/persister/model_converter.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value:, scope:) ⇒ NestedProperty
constructor
A new instance of NestedProperty.
- #key ⇒ Object
- #node ⇒ Object
- #property ⇒ Object
Constructor Details
#initialize(value:, scope:) ⇒ NestedProperty
Returns a new instance of NestedProperty.
252 253 254 255 |
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 252 def initialize(value:, scope:) @value = value @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
251 252 253 |
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 251 def scope @scope end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
251 252 253 |
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 251 def value @value end |
Instance Method Details
#key ⇒ Object
261 262 263 |
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 261 def key scope.key.to_s.singularize.to_sym end |