Sha256: f86a344358e344240bfc06404367efb810ec7c292e42840fea22ea11c91c10f4

Contents?: true

Size: 374 Bytes

Versions: 100

Compression:

Stored size: 374 Bytes

Contents

class Webhooks::Outgoing::EventType < ApplicationHash
  self.data = YAML.load_file("config/models/webhooks/outgoing/event_types.yml").map do |topic, events|
    events.map { |event| (event == "crud") ? ["created", "updated", "deleted"] : event }.flatten.map { |event| {id: "#{topic}.#{event}"} }
  end.flatten

  def label_string
    name
  end

  def name
    id
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
bullet_train-outgoing_webhooks-1.6.26 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.25 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.24 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.23 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.22 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.21 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.20 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.19 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.18 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.17 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.16 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.15 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.14 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.13 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.12 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.11 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.10 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.9 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.8 app/models/webhooks/outgoing/event_type.rb
bullet_train-outgoing_webhooks-1.6.7 app/models/webhooks/outgoing/event_type.rb