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.
260 261 262 263 |
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 260 def initialize(value:, scope:) @value = value @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
259 260 261 |
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 259 def scope @scope end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
259 260 261 |
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 259 def value @value end |
Instance Method Details
#key ⇒ Object
269 270 271 |
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 269 def key scope.key.to_s.singularize.to_sym end |