class XMigra::Function

Constants

OBJECT_TYPE

Attributes

depends_on[R]
name[R]

Public Class Methods

new(func_info) click to toggle source

Construct with a hash (as if loaded from a function YAML file)

# File lib/xmigra/function.rb, line 9
def initialize(func_info)
  @name = func_info["name"].dup.freeze
  @depends_on = func_info.fetch("referencing", []).dup.freeze
  @definition = func_info["sql"].dup.freeze
end