class StreamRails::ActivityResult

Attributes

enriched[RW]
failed_to_enrich[R]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/stream_rails/enrich.rb, line 8
def initialize
  @failed_to_enrich = {}
  super
end

Public Instance Methods

enriched?() click to toggle source
# File lib/stream_rails/enrich.rb, line 17
def enriched?
  @failed_to_enrich.keys.length.zero?
end
from_activity(from) click to toggle source
# File lib/stream_rails/enrich.rb, line 13
def from_activity(from)
  merge(from)
end
not_enriched_fields() click to toggle source
# File lib/stream_rails/enrich.rb, line 21
def not_enriched_fields
  @failed_to_enrich.keys
end
track_not_enriched_field(field, value = nil) click to toggle source
# File lib/stream_rails/enrich.rb, line 25
def track_not_enriched_field(field, value = nil)
  @failed_to_enrich[field] = value
end