Class: IronBank::Describe::ExcludedFields::DeduceFromQuery
- Inherits:
-
Object
- Object
- IronBank::Describe::ExcludedFields::DeduceFromQuery
- Defined in:
- lib/iron_bank/describe/excluded_fields/deduce_from_query.rb
Overview
rubocop:disable Style/ClassAndModuleChildren
Constant Summary collapse
- INVALID_OBJECT_ID =
"InvalidObjectId"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(object) ⇒ Object
15 16 17 |
# File 'lib/iron_bank/describe/excluded_fields/deduce_from_query.rb', line 15 def self.call(object) new(object).call end |
Instance Method Details
#call ⇒ Object
19 20 21 22 23 24 |
# File 'lib/iron_bank/describe/excluded_fields/deduce_from_query.rb', line 19 def call query_fields = object.query_fields.clone divide_and_execute(query_fields) object.query_fields.concat(query_fields) invalid_fields end |