class Fog::Parsers::Schema::NodeArray

Public Class Methods

new(*) click to toggle source
Calls superclass method Fog::Parsers::Schema::Node::new
# File lib/ext_fog_aws/fog/parsers/schema.rb, line 163
def initialize(*)
  super
  @count = 0
  @result_pointer[name] = []
end

Public Instance Methods

new_item() click to toggle source
# File lib/ext_fog_aws/fog/parsers/schema.rb, line 173
def new_item
  index = @count
  @count += 1
  item_class = next_schema.is_a?(Hash) ? NodeHash : NodeValue
  item_class.new(name, @schema_pointer, @result_pointer, index)
end
next_schema() click to toggle source
# File lib/ext_fog_aws/fog/parsers/schema.rb, line 169
def next_schema
  @schema_pointer[name].first
end