Class: ApiQueryLanguage::ActiveRecord::Fields::MappingToColumn::Mapping
- Inherits:
-
Data
- Object
- Data
- ApiQueryLanguage::ActiveRecord::Fields::MappingToColumn::Mapping
- Defined in:
- lib/api_query_language/active_record/fields/mapping_to_column.rb
Instance Attribute Summary collapse
-
#allowed_values ⇒ Object
readonly
Returns the value of attribute allowed_values.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#relation ⇒ Object
readonly
Returns the value of attribute relation.
-
#value_transform ⇒ Object
readonly
Returns the value of attribute value_transform.
Instance Method Summary collapse
-
#initialize(column:, relation:, value_transform: nil, allowed_values: nil) ⇒ Mapping
constructor
A new instance of Mapping.
Constructor Details
#initialize(column:, relation:, value_transform: nil, allowed_values: nil) ⇒ Mapping
Returns a new instance of Mapping.
6 7 8 |
# File 'lib/api_query_language/active_record/fields/mapping_to_column.rb', line 6 def initialize(column:, relation:, value_transform: nil, allowed_values: nil) super end |
Instance Attribute Details
#allowed_values ⇒ Object (readonly)
Returns the value of attribute allowed_values
5 6 7 |
# File 'lib/api_query_language/active_record/fields/mapping_to_column.rb', line 5 def allowed_values @allowed_values end |
#column ⇒ Object (readonly)
Returns the value of attribute column
5 6 7 |
# File 'lib/api_query_language/active_record/fields/mapping_to_column.rb', line 5 def column @column end |
#relation ⇒ Object (readonly)
Returns the value of attribute relation
5 6 7 |
# File 'lib/api_query_language/active_record/fields/mapping_to_column.rb', line 5 def relation @relation end |
#value_transform ⇒ Object (readonly)
Returns the value of attribute value_transform
5 6 7 |
# File 'lib/api_query_language/active_record/fields/mapping_to_column.rb', line 5 def value_transform @value_transform end |