Module: Yext::Api::Concerns::AccountRelations

Extended by:
ActiveSupport::Concern
Included in:
AdministrativeApi::Account, KnowledgeApi::AccountSettings::Account
Defined in:
lib/yext/api/concerns/account_relations.rb

Overview

Because the Account is listed in the API documentation in two locations, there are two different but somewhat identical Account objects.

This module includes the shared code between the two.

Instance Method Summary collapse

Instance Method Details

#accountId=(value) ⇒ Object

Yext field names don’t match the Ruby naming standard, this is the field name they use. Because I use ‘account_id` in the route, I need that attribute defined. Because Yext uses accountId, when it is set, I need to set `account_id` so they will match.



56
57
58
59
# File 'lib/yext/api/concerns/account_relations.rb', line 56

def accountId=(value)
  super
  attributes[:account_id] ||= value
end