Class: SybaseDefinitions::View

Inherits:
Object
  • Object
show all
Defined in:
lib/marjoree/sybase_definitions.rb

Overview

helper classes

Instance Method Summary collapse

Constructor Details

#initialize(view_name) ⇒ View

Returns a new instance of View.



38
39
40
41
# File 'lib/marjoree/sybase_definitions.rb', line 38

def initialize( view_name )
    @view_name = view_name
    #puts $connection.columns( @table_name ).columns.each_hash{ |key,value| puts "Key: #{key}, value: #{value}"}
end

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/marjoree/sybase_definitions.rb', line 43

def exists?
    fail( "View #{@view_name} does not exist" ) unless get_user_views.include? @view_name
end