Class: VORuby::Services::Schema::SchemaDefinition::ArrayOfMetaTable
- Defined in:
- lib/voruby/services/schema/schema.rb
Instance Attribute Summary collapse
-
#meta_tables ⇒ Object
readonly
Returns the value of attribute meta_tables.
Class Method Summary collapse
-
.from_xml(node) ⇒ Object
The node is MetaTable.
Instance Method Summary collapse
-
#initialize(meta_tables = []) ⇒ ArrayOfMetaTable
constructor
A new instance of ArrayOfMetaTable.
- #to_s ⇒ Object
Constructor Details
#initialize(meta_tables = []) ⇒ ArrayOfMetaTable
Returns a new instance of ArrayOfMetaTable.
80 81 82 |
# File 'lib/voruby/services/schema/schema.rb', line 80 def initialize(=[]) @meta_tables = end |
Instance Attribute Details
#meta_tables ⇒ Object (readonly)
Returns the value of attribute meta_tables.
78 79 80 |
# File 'lib/voruby/services/schema/schema.rb', line 78 def @meta_tables end |
Class Method Details
.from_xml(node) ⇒ Object
The node is MetaTable
85 86 87 88 89 90 91 92 93 94 |
# File 'lib/voruby/services/schema/schema.rb', line 85 def self.from_xml(node) = [] node.elements.each('MetaTable') do |elem| = MetaTable.from_xml(elem) .push() if end return ArrayOfMetaTable.new() end |
Instance Method Details
#to_s ⇒ Object
96 97 98 99 100 101 102 103 |
# File 'lib/voruby/services/schema/schema.rb', line 96 def to_s = [] @meta_tables.each do || .push(.to_s) end return "{meta_tables=[#{.join(',')}]}" end |