Class: ActivityNotification::ORM::Dynamoid::Subscription
- Inherits:
-
Object
- Object
- ActivityNotification::ORM::Dynamoid::Subscription
- Includes:
- ActiveModel::AttributeAssignment, Association, DynamoidExtension, SubscriptionApi, Dynamoid::Document
- Defined in:
- lib/activity_notification/orm/dynamoid/subscription.rb
Overview
Subscription model implementation generated by ActivityNotification.
Constant Summary collapse
- @@date_time_dumper =
Initialize without options to use Dynamoid.config.store_datetime_as_string github.com/Dynamoid/dynamoid/blob/master/lib/dynamoid/dumping.rb
::Dynamoid::Dumping::DateTimeDumper.new({})
Class Method Summary collapse
-
.convert_time_as_hash(time) ⇒ Integer, String
Convert Time value to store in database as Hash value.
Instance Method Summary collapse
-
#target ⇒ Object
Belongs to target instance of this subscription as polymorphic association using composite key.
Methods included from SubscriptionApi
#as_json, #earliest_order, #earliest_order!, #earliest_subscribed_order, filtered_by_key, filtered_by_options, #key_order, #latest_order, #latest_order!, #latest_subscribed_order, #optional_target_names, #subscribe, #subscribe_to_email, #subscribe_to_optional_target, #subscribing_to_optional_target?, to_optional_target_key, to_optional_target_subscribed_at_key, to_optional_target_unsubscribed_at_key, #unsubscribe, #unsubscribe_to_email, #unsubscribe_to_optional_target
Methods included from Association
belongs_to_composite_xdb_record, belongs_to_polymorphic_xdb_record, filtered_by_association, has_many_composite_xdb_records, has_many_polymorphic_xdb_records, has_many_records, #update
Methods included from DynamoidExtension
Class Method Details
.convert_time_as_hash(time) ⇒ Integer, String
Convert Time value to store in database as Hash value.
76 77 78 |
# File 'lib/activity_notification/orm/dynamoid/subscription.rb', line 76 def self.convert_time_as_hash(time) @@date_time_dumper.process(time) end |
Instance Method Details
#target ⇒ Object
Belongs to target instance of this subscription as polymorphic association using composite key.
20 |
# File 'lib/activity_notification/orm/dynamoid/subscription.rb', line 20 belongs_to_composite_xdb_record :target |