Method: Hubspot::Cms::Blogs::Authors::BlogAuthor#valid?

Defined in:
lib/hubspot/codegen/cms/blogs/authors/models/blog_author.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
# File 'lib/hubspot/codegen/cms/blogs/authors/models/blog_author.rb', line 219

def valid?
  return false if @id.nil?
  return false if @email.nil?
  return false if @bio.nil?
  return false if @website.nil?
  return false if @twitter.nil?
  return false if @facebook.nil?
  return false if @linkedin.nil?
  return false if @avatar.nil?
  return false if @display_name.nil?
  return false if @deleted_at.nil?
  return false if @created_at.nil?
  return false if @updated_at.nil?
  true
end