class Fog::Parsers::Schema::NodeHash

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 91
def initialize(*)
  super
  if @index
    @result_pointer[name][@index] = {}
  else
    @result_pointer[name] = {}
  end
end

Public Instance Methods

next_result() click to toggle source
# File lib/ext_fog_aws/fog/parsers/schema.rb, line 104
def next_result
  _next_schema.is_a?(Hash) ? _next_result : {}
end
next_schema() click to toggle source
# File lib/ext_fog_aws/fog/parsers/schema.rb, line 100
def next_schema
  _next_schema.is_a?(Hash) ? _next_schema : {}
end

Private Instance Methods

_next_result() click to toggle source
# File lib/ext_fog_aws/fog/parsers/schema.rb, line 118
def _next_result
  if @index
    @result_pointer[name][@index]
  else
    @result_pointer[name]
  end
end
_next_schema() click to toggle source
# File lib/ext_fog_aws/fog/parsers/schema.rb, line 110
def _next_schema
  if @index
    @schema_pointer[name].first
  else
    @schema_pointer[name]
  end
end