Module: BulletTrain::OutgoingWebhooks
- Defined in:
- lib/bullet_train/outgoing_webhooks.rb,
lib/bullet_train/outgoing_webhooks/engine.rb,
lib/bullet_train/outgoing_webhooks/version.rb,
lib/bullet_train/outgoing_webhooks/signature.rb
Defined Under Namespace
Modules: Signature
Classes: Engine
Constant Summary
collapse
- VERSION =
"1.38.0"
Class Method Summary
collapse
Class Method Details
.current_parent_method ⇒ Object
28
29
30
|
# File 'lib/bullet_train/outgoing_webhooks.rb', line 28
def self.current_parent_method
"current_#{parent_association}"
end
|
.default_for(klass, method, default_value) ⇒ Object
7
8
9
|
# File 'lib/bullet_train/outgoing_webhooks.rb', line 7
def self.default_for(klass, method, default_value)
klass.respond_to?(method) ? klass.send(method) || default_value : default_value
end
|
.parent_association ⇒ Object
16
17
18
|
# File 'lib/bullet_train/outgoing_webhooks.rb', line 16
def self.parent_association
parent_class.underscore.to_sym
end
|
.parent_association_id ⇒ Object
32
33
34
|
# File 'lib/bullet_train/outgoing_webhooks.rb', line 32
def self.parent_association_id
:"#{parent_association}_id"
end
|
.parent_class_specified? ⇒ Boolean
24
25
26
|
# File 'lib/bullet_train/outgoing_webhooks.rb', line 24
def self.parent_class_specified?
parent_class != "Team"
end
|
.parent_resource ⇒ Object
20
21
22
|
# File 'lib/bullet_train/outgoing_webhooks.rb', line 20
def self.parent_resource
parent_class.underscore.pluralize.to_sym
end
|