Class: Upkeep::Subscriptions::ReverseIndex::Entry

Inherits:
Data
  • Object
show all
Defined in:
lib/upkeep/subscriptions/reverse_index.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cohort_keyObject (readonly)

Returns the value of attribute cohort_key

Returns:

  • (Object)

    the current value of cohort_key



8
9
10
# File 'lib/upkeep/subscriptions/reverse_index.rb', line 8

def cohort_key
  @cohort_key
end

#dependencyObject (readonly)

Returns the value of attribute dependency

Returns:

  • (Object)

    the current value of dependency



8
9
10
# File 'lib/upkeep/subscriptions/reverse_index.rb', line 8

def dependency
  @dependency
end

#dependency_cache_keyObject (readonly)

Returns the value of attribute dependency_cache_key

Returns:

  • (Object)

    the current value of dependency_cache_key



8
9
10
# File 'lib/upkeep/subscriptions/reverse_index.rb', line 8

def dependency_cache_key
  @dependency_cache_key
end

#owner_idObject (readonly)

Returns the value of attribute owner_id

Returns:

  • (Object)

    the current value of owner_id



8
9
10
# File 'lib/upkeep/subscriptions/reverse_index.rb', line 8

def owner_id
  @owner_id
end

#subscriber_idsObject (readonly)

Returns the value of attribute subscriber_ids

Returns:

  • (Object)

    the current value of subscriber_ids



8
9
10
# File 'lib/upkeep/subscriptions/reverse_index.rb', line 8

def subscriber_ids
  @subscriber_ids
end

#subscription_idObject (readonly)

Returns the value of attribute subscription_id

Returns:

  • (Object)

    the current value of subscription_id



8
9
10
# File 'lib/upkeep/subscriptions/reverse_index.rb', line 8

def subscription_id
  @subscription_id
end

Instance Method Details

#cohort?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/upkeep/subscriptions/reverse_index.rb', line 13

def cohort?
  !!cohort_key
end

#represented_subscriber_idsObject



9
10
11
# File 'lib/upkeep/subscriptions/reverse_index.rb', line 9

def represented_subscriber_ids
  Array(subscriber_ids)
end