Class: IronBank::Describe::ExcludedFields

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/iron_bank/describe/excluded_fields.rb

Overview

Returns an array of non-queryable fields for the given object in the current Zuora tenant, despites Zuora clearly marking these fields as ‘<selectable>true</true>` in their Describe API… /rant

Defined Under Namespace

Classes: DeduceFromQuery, ExtractFromMessage

Constant Summary collapse

INVALID_OBJECT_ID =
"InvalidObjectId"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(object_name:) ⇒ Object



15
16
17
# File 'lib/iron_bank/describe/excluded_fields.rb', line 15

def self.call(object_name:)
  new(object_name).call
end

Instance Method Details

#callObject



19
20
21
22
# File 'lib/iron_bank/describe/excluded_fields.rb', line 19

def call
  remove_invalid_fields until valid_query?
  (excluded_fields - single_resource_query_fields).sort
end