Class: Hanami::Model::Plugins::Schema::InputWithSchema Private
- Inherits:
- 
      WrappingInput
      
        - Object
- WrappingInput
- Hanami::Model::Plugins::Schema::InputWithSchema
 
- Defined in:
- lib/hanami/model/plugins/schema.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Takes the input and applies the values transformations.
Instance Method Summary collapse
- 
  
    
      #[](value)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    Processes the input. 
- 
  
    
      #initialize(relation, input)  ⇒ InputWithSchema 
    
    
  
  
  
    constructor
  
  
  
  
  
  private
  
    A new instance of InputWithSchema. 
Constructor Details
#initialize(relation, input) ⇒ InputWithSchema
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of InputWithSchema.
| 18 19 20 21 | # File 'lib/hanami/model/plugins/schema.rb', line 18 def initialize(relation, input) super @schema = relation.input_schema end | 
Instance Method Details
#[](value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Processes the input
| 27 28 29 | # File 'lib/hanami/model/plugins/schema.rb', line 27 def [](value) @schema[@input[value]] end |