class DbMeta::Oracle::GrantCollection
Attributes
collection[R]
extract_type[R]
name[R]
status[R]
type[R]
Public Class Methods
new(args = {})
click to toggle source
# File lib/db_meta/oracle/types/grant_collection.rb, line 8 def initialize(args = {}) @name = args[:name] @type = args[:type] @status = :valid @extract_type = :default @collection = [] end
Public Instance Methods
<<(object)
click to toggle source
# File lib/db_meta/oracle/types/grant_collection.rb, line 20 def <<(object) @collection << object end
ddl_drop()
click to toggle source
# File lib/db_meta/oracle/types/grant_collection.rb, line 31 def ddl_drop @collection.reverse_each.map { |o| o.ddl_drop }.join("\n") end
empty?()
click to toggle source
# File lib/db_meta/oracle/types/grant_collection.rb, line 16 def empty? @collection.size == 0 end
extract(args = {})
click to toggle source
# File lib/db_meta/oracle/types/grant_collection.rb, line 24 def extract(args = {}) buffer = [block(@name)] buffer << @collection.map { |o| o.extract(args) } buffer << nil buffer.join("\n") end
system_object?()
click to toggle source
# File lib/db_meta/oracle/types/grant_collection.rb, line 35 def system_object? false end