Method: Rightscale::Slicehost::ZonesParser#tagend

Defined in:
lib/right_slicehost.rb

#tagend(name) ⇒ Object



550
551
552
553
554
555
556
557
558
# File 'lib/right_slicehost.rb', line 550

def tagend(name)
  case name
  when 'id'     then @item[:sls_id] = @text.to_i
  when 'origin' then @item[:origin] = @text
  when 'ttl'    then @item[:ttl]    = @text.to_i
  when 'active' then @item[:active] = @text == 'Y'
  when 'zone'   then @result       << @item
  end
end