class Yext::Api::Validators::AccountValidator
A Validator for account updates to verify that the update is valid.
Public Class Methods
new(obj)
click to toggle source
Calls superclass method
# File lib/yext/api/validators/account_validator.rb, line 11 def initialize(obj) # Ensure that the accountId field exists by cloning the Account and setting it. obj = Yext::Api::AdministrativeApi::Account.new(obj.attributes) obj.accountId = obj[:accountId] super(obj) end