Class: Fog::Parsers::Schema::NodeHash

Inherits:
Node
  • Object
show all
Defined in:
lib/ext_fog_aws/fog/parsers/schema.rb

Instance Attribute Summary

Attributes inherited from Node

#name

Instance Method Summary collapse

Methods inherited from Node

#update_result

Constructor Details

#initializeNodeHash

Returns a new instance of NodeHash.



91
92
93
94
95
96
97
98
# 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

Instance Method Details

#next_resultObject



104
105
106
# File 'lib/ext_fog_aws/fog/parsers/schema.rb', line 104

def next_result
  _next_schema.is_a?(Hash) ? _next_result : {}
end

#next_schemaObject



100
101
102
# File 'lib/ext_fog_aws/fog/parsers/schema.rb', line 100

def next_schema
  _next_schema.is_a?(Hash) ? _next_schema : {}
end