Class: Expressir::Liquid::Expressions::EntityConstructorDrop
- Inherits:
-
Expressir::Liquid::ExpressionDrop
- Object
- Liquid::Drop
- ModelElementDrop
- Expressir::Liquid::ExpressionDrop
- Expressir::Liquid::Expressions::EntityConstructorDrop
- Defined in:
- lib/expressir/liquid/expressions/entity_constructor_drop.rb
Instance Method Summary collapse
- #entity ⇒ Object
-
#initialize(model) ⇒ EntityConstructorDrop
constructor
A new instance of EntityConstructorDrop.
- #parameters ⇒ Object
Methods inherited from ModelElementDrop
Constructor Details
#initialize(model) ⇒ EntityConstructorDrop
Returns a new instance of EntityConstructorDrop.
7 8 9 10 |
# File 'lib/expressir/liquid/expressions/entity_constructor_drop.rb', line 7 def initialize(model) @model = model super end |
Instance Method Details
#entity ⇒ Object
12 13 14 |
# File 'lib/expressir/liquid/expressions/entity_constructor_drop.rb', line 12 def entity drop_klass_by_model(@model.entity) end |
#parameters ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/expressir/liquid/expressions/entity_constructor_drop.rb', line 16 def parameters return [] unless @model.parameters @model.parameters.map do |item| drop_klass_by_model(item) end end |