Class: Seo::GoogleAdsSyncService::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/seo/google_ads_sync_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pages_updated: 0, keywords_enriched: 0, keywords_created: 0, errors: []) ⇒ Result

Returns a new instance of Result.



24
# File 'app/services/seo/google_ads_sync_service.rb', line 24

def initialize(pages_updated: 0, keywords_enriched: 0, keywords_created: 0, errors: []) = super

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



23
24
25
# File 'app/services/seo/google_ads_sync_service.rb', line 23

def errors
  @errors
end

#keywords_createdObject (readonly)

Returns the value of attribute keywords_created

Returns:

  • (Object)

    the current value of keywords_created



23
24
25
# File 'app/services/seo/google_ads_sync_service.rb', line 23

def keywords_created
  @keywords_created
end

#keywords_enrichedObject (readonly)

Returns the value of attribute keywords_enriched

Returns:

  • (Object)

    the current value of keywords_enriched



23
24
25
# File 'app/services/seo/google_ads_sync_service.rb', line 23

def keywords_enriched
  @keywords_enriched
end

#pages_updatedObject (readonly)

Returns the value of attribute pages_updated

Returns:

  • (Object)

    the current value of pages_updated



23
24
25
# File 'app/services/seo/google_ads_sync_service.rb', line 23

def pages_updated
  @pages_updated
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


25
# File 'app/services/seo/google_ads_sync_service.rb', line 25

def success? = errors.empty?