Class: Valkyrie::Sequel::ResourceFactory::ORMConverter
- Inherits:
-
Object
- Object
- Valkyrie::Sequel::ResourceFactory::ORMConverter
- Defined in:
- lib/valkyrie/sequel/resource_factory/orm_converter.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#resource_factory ⇒ Object
readonly
Returns the value of attribute resource_factory.
Instance Method Summary collapse
- #convert! ⇒ Object
-
#initialize(object, resource_factory:) ⇒ ORMConverter
constructor
A new instance of ORMConverter.
Constructor Details
#initialize(object, resource_factory:) ⇒ ORMConverter
Returns a new instance of ORMConverter.
5 6 7 8 |
# File 'lib/valkyrie/sequel/resource_factory/orm_converter.rb', line 5 def initialize(object, resource_factory:) @object = object @resource_factory = resource_factory end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
4 5 6 |
# File 'lib/valkyrie/sequel/resource_factory/orm_converter.rb', line 4 def object @object end |
#resource_factory ⇒ Object (readonly)
Returns the value of attribute resource_factory.
4 5 6 |
# File 'lib/valkyrie/sequel/resource_factory/orm_converter.rb', line 4 def resource_factory @resource_factory end |
Instance Method Details
#convert! ⇒ Object
10 11 12 |
# File 'lib/valkyrie/sequel/resource_factory/orm_converter.rb', line 10 def convert! @resource ||= resource end |