Sha256: a07c7cc2e4b20ec8beb4bf412bfe5fed5d92ceb3964a8206a9b03789e8e27e1a

Contents?: true

Size: 372 Bytes

Versions: 2

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true

module Legion
  module Data
    module Model
      # Used for accessing legion.functions
      class Function < Sequel::Model
        many_to_one :namespace
        one_to_many :trigger_functions, class: :Relationship, key: :trigger_id
        one_to_many :action_functions, class: :Relationship, key: :action_id
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
legion-data-0.1.1 lib/legion/data/models/function.rb
legion-data-0.1.0 lib/legion/data/models/function.rb