Class: AuthRocket::Hook
- Inherits:
-
Resource
- Object
- Resource
- AuthRocket::Hook
- Defined in:
- lib/authrocket/hook.rb
Instance Attribute Summary collapse
-
#accumulate ⇒ Object
readonly
Returns the value of attribute accumulate.
-
#current_locales ⇒ Object
readonly
readonly.
-
#delay ⇒ Object
readonly
Returns the value of attribute delay.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#destination ⇒ Object
readonly
Returns the value of attribute destination.
-
#email_renderers ⇒ Object
readonly
Returns the value of attribute email_renderers.
-
#email_subjects ⇒ Object
readonly
Returns the value of attribute email_subjects.
-
#email_templates ⇒ Object
readonly
Returns the value of attribute email_templates.
-
#email_to ⇒ Object
readonly
Returns the value of attribute email_to.
-
#event_type ⇒ Object
readonly
Returns the value of attribute event_type.
-
#hook_type ⇒ Object
readonly
Returns the value of attribute hook_type.
-
#list_id ⇒ Object
readonly
Returns the value of attribute list_id.
-
#locales ⇒ Object
readonly
Returns the value of attribute locales.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#on_create ⇒ Object
readonly
Returns the value of attribute on_create.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Class Method Summary collapse
Instance Attribute Details
#accumulate ⇒ Object (readonly)
Returns the value of attribute accumulate.
8 9 10 |
# File 'lib/authrocket/hook.rb', line 8 def accumulate @accumulate end |
#current_locales ⇒ Object (readonly)
readonly
11 12 13 |
# File 'lib/authrocket/hook.rb', line 11 def current_locales @current_locales end |
#delay ⇒ Object (readonly)
Returns the value of attribute delay.
8 9 10 |
# File 'lib/authrocket/hook.rb', line 8 def delay @delay end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
12 13 14 |
# File 'lib/authrocket/hook.rb', line 12 def description @description end |
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
9 10 11 |
# File 'lib/authrocket/hook.rb', line 9 def destination @destination end |
#email_renderers ⇒ Object (readonly)
Returns the value of attribute email_renderers.
10 11 12 |
# File 'lib/authrocket/hook.rb', line 10 def email_renderers @email_renderers end |
#email_subjects ⇒ Object (readonly)
Returns the value of attribute email_subjects.
10 11 12 |
# File 'lib/authrocket/hook.rb', line 10 def email_subjects @email_subjects end |
#email_templates ⇒ Object (readonly)
Returns the value of attribute email_templates.
10 11 12 |
# File 'lib/authrocket/hook.rb', line 10 def email_templates @email_templates end |
#email_to ⇒ Object (readonly)
Returns the value of attribute email_to.
10 11 12 |
# File 'lib/authrocket/hook.rb', line 10 def email_to @email_to end |
#event_type ⇒ Object (readonly)
Returns the value of attribute event_type.
8 9 10 |
# File 'lib/authrocket/hook.rb', line 8 def event_type @event_type end |
#hook_type ⇒ Object (readonly)
Returns the value of attribute hook_type.
8 9 10 |
# File 'lib/authrocket/hook.rb', line 8 def hook_type @hook_type end |
#list_id ⇒ Object (readonly)
Returns the value of attribute list_id.
12 13 14 |
# File 'lib/authrocket/hook.rb', line 12 def list_id @list_id end |
#locales ⇒ Object (readonly)
Returns the value of attribute locales.
10 11 12 |
# File 'lib/authrocket/hook.rb', line 10 def locales @locales end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
12 13 14 |
# File 'lib/authrocket/hook.rb', line 12 def name @name end |
#on_create ⇒ Object (readonly)
Returns the value of attribute on_create.
12 13 14 |
# File 'lib/authrocket/hook.rb', line 12 def on_create @on_create end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
8 9 10 |
# File 'lib/authrocket/hook.rb', line 8 def state @state end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility.
12 13 14 |
# File 'lib/authrocket/hook.rb', line 12 def visibility @visibility end |
Class Method Details
.email_event_types ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/authrocket/hook.rb', line 30 def self.email_event_types %w( invitation.org.invited invitation.org.accepted invitation.preverify.invited invitation.referral.invited invitation.request.invited user.created user.email.updating user.email.verifying user.email.verified user.login.succeeded user.login.failed user.password.resetting user.password.updated user.profile.updated ).sort end |
.event_types ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/authrocket/hook.rb', line 15 def self.event_types %w( invitation.org.created invitation.org.updated invitation.org.invited invitation.org.accepted invitation.org.expired invitation.preverify.created invitation.preverify.updated invitation.preverify.invited invitation.preverify.accepted invitation.preverify.expired invitation.referral.created invitation.referral.updated invitation.referral.invited invitation.referral.accepted invitation.referral.expired invitation.request.created invitation.request.updated invitation.request.invited invitation.request.accepted invitation.request.expired membership.created membership.updated membership.deleted org.created org.updated org.closed user.created user.updated user.deleted user.email.updating user.email.verifying user.email.verified user.login.succeeded user.login.failed user.login.initiated user.password.resetting user.password.updated user.profile.updated ).sort end |