Class: Hodor::Oozie::Job::Configuration
- Inherits:
-
Ox::Sax
- Object
- Ox::Sax
- Hodor::Oozie::Job::Configuration
- Defined in:
- lib/hodor/api/oozie/job.rb
Instance Attribute Summary collapse
-
#map ⇒ Object
readonly
Returns the value of attribute map.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #start_element(key) ⇒ Object
- #text(incoming) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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
#map ⇒ Object (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 |