Class: Hodor::Oozie::Job::Configuration

Inherits:
Ox::Sax
  • Object
show all
Defined in:
lib/hodor/api/oozie/job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



159
160
161
# File 'lib/hodor/api/oozie/job.rb', line 159

def initialize 
  @map = {}
end

Instance Attribute Details

#mapObject (readonly)

Returns the value of attribute map.



157
158
159
# File 'lib/hodor/api/oozie/job.rb', line 157

def map
  @map
end

Instance Method Details

#start_element(key) ⇒ Object



163
164
165
# File 'lib/hodor/api/oozie/job.rb', line 163

def start_element(key)
  @incoming = key
end

#text(incoming) ⇒ Object



167
168
169
170
171
172
173
174
# File 'lib/hodor/api/oozie/job.rb', line 167

def text(incoming)
  case @incoming
  when :name;
    @key = incoming
  when :value;
    @map[@key] = incoming
  end
end