Class: Rubeus::Jdbc::MetaElement

Inherits:
Object
  • Object
show all
Defined in:
lib/rubeus/jdbc/meta_element.rb

Direct Known Subclasses

Index::Key, Table, TableElement

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta_data, attrs, options = nil) ⇒ MetaElement

Returns a new instance of MetaElement.



4
5
6
7
8
9
10
11
12
# File 'lib/rubeus/jdbc/meta_element.rb', line 4

def initialize(, attrs, options = nil)
  @meta_data = 
  @jdbc_info = attrs.dup
  attrs.each do |attr, value|
    m = "#{attr.to_s.downcase}="
    self.send(m, value) if respond_to?(m)
  end
  @options = options ? options.dup : {}
end

Instance Attribute Details

#jdbc_infoObject (readonly)

Returns the value of attribute jdbc_info.



3
4
5
# File 'lib/rubeus/jdbc/meta_element.rb', line 3

def jdbc_info
  @jdbc_info
end

#meta_dataObject (readonly)

Returns the value of attribute meta_data.



3
4
5
# File 'lib/rubeus/jdbc/meta_element.rb', line 3

def 
  @meta_data
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/rubeus/jdbc/meta_element.rb', line 3

def options
  @options
end

Instance Method Details

#pretty_print_instance_variablesObject



14
15
16
# File 'lib/rubeus/jdbc/meta_element.rb', line 14

def pretty_print_instance_variables
  self.instance_variables.sort.map{|v| v.to_sym} - [:@meta_data, :@jdbc_info, :@table]
end