Class: Marketing::Ads::ActionItemSync::Result
- Inherits:
-
Data
- Object
- Data
- Marketing::Ads::ActionItemSync::Result
- Defined in:
- app/services/marketing/ads/action_item_sync.rb
Overview
One run's tally.
Instance Attribute Summary collapse
-
#campaigns ⇒ Object
readonly
Returns the value of attribute campaigns.
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#staled ⇒ Object
readonly
Returns the value of attribute staled.
-
#updated ⇒ Object
readonly
Returns the value of attribute updated.
Instance Method Summary collapse
-
#initialize(created: 0, updated: 0, staled: 0, campaigns: 0) ⇒ Result
constructor
A new instance of Result.
-
#to_h ⇒ Hash
The tally, for the log line.
Constructor Details
#initialize(created: 0, updated: 0, staled: 0, campaigns: 0) ⇒ Result
Returns a new instance of Result.
76 |
# File 'app/services/marketing/ads/action_item_sync.rb', line 76 def initialize(created: 0, updated: 0, staled: 0, campaigns: 0) = super |
Instance Attribute Details
#campaigns ⇒ Object (readonly)
Returns the value of attribute campaigns
71 72 73 |
# File 'app/services/marketing/ads/action_item_sync.rb', line 71 def campaigns @campaigns end |
#created ⇒ Object (readonly)
Returns the value of attribute created
71 72 73 |
# File 'app/services/marketing/ads/action_item_sync.rb', line 71 def created @created end |
#staled ⇒ Object (readonly)
Returns the value of attribute staled
71 72 73 |
# File 'app/services/marketing/ads/action_item_sync.rb', line 71 def staled @staled end |
#updated ⇒ Object (readonly)
Returns the value of attribute updated
71 72 73 |
# File 'app/services/marketing/ads/action_item_sync.rb', line 71 def updated @updated end |
Instance Method Details
#to_h ⇒ Hash
Returns the tally, for the log line.
79 |
# File 'app/services/marketing/ads/action_item_sync.rb', line 79 def to_h = { created:, updated:, staled:, campaigns: } |