Class: Rubeus::Jdbc::MetaElement
- Inherits:
-
Object
- Object
- Rubeus::Jdbc::MetaElement
- Defined in:
- lib/rubeus/jdbc/meta_element.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#jdbc_info ⇒ Object
readonly
Returns the value of attribute jdbc_info.
-
#meta_data ⇒ Object
readonly
Returns the value of attribute meta_data.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(meta_data, attrs, options = nil) ⇒ MetaElement
constructor
A new instance of MetaElement.
- #pretty_print_instance_variables ⇒ Object
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, = 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 = ? .dup : {} end |
Instance Attribute Details
#jdbc_info ⇒ Object (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_data ⇒ Object (readonly)
Returns the value of attribute meta_data.
3 4 5 |
# File 'lib/rubeus/jdbc/meta_element.rb', line 3 def @meta_data end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/rubeus/jdbc/meta_element.rb', line 3 def @options end |
Instance Method Details
#pretty_print_instance_variables ⇒ Object
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 |