Class: Seo::GoogleAdsSyncService::Result
- Inherits:
-
Data
- Object
- Data
- Seo::GoogleAdsSyncService::Result
- Defined in:
- app/services/seo/google_ads_sync_service.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#keywords_created ⇒ Object
readonly
Returns the value of attribute keywords_created.
-
#keywords_enriched ⇒ Object
readonly
Returns the value of attribute keywords_enriched.
-
#pages_updated ⇒ Object
readonly
Returns the value of attribute pages_updated.
Instance Method Summary collapse
-
#initialize(pages_updated: 0, keywords_enriched: 0, keywords_created: 0, errors: []) ⇒ Result
constructor
A new instance of Result.
- #success? ⇒ Boolean
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
#errors ⇒ Object (readonly)
Returns the value of attribute errors
23 24 25 |
# File 'app/services/seo/google_ads_sync_service.rb', line 23 def errors @errors end |
#keywords_created ⇒ Object (readonly)
Returns the value of attribute keywords_created
23 24 25 |
# File 'app/services/seo/google_ads_sync_service.rb', line 23 def keywords_created @keywords_created end |
#keywords_enriched ⇒ Object (readonly)
Returns the value of attribute keywords_enriched
23 24 25 |
# File 'app/services/seo/google_ads_sync_service.rb', line 23 def keywords_enriched @keywords_enriched end |
#pages_updated ⇒ Object (readonly)
Returns the value of attribute 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
25 |
# File 'app/services/seo/google_ads_sync_service.rb', line 25 def success? = errors.empty? |