Class: RightAws::ElbInterface::DescribeInstanceHealthParser

Inherits:
RightAWSParser show all
Defined in:
lib/elb/right_elb_interface.rb

Overview


PARSERS: Instances

Constant Summary

Constants inherited from RightAWSParser

RightAWSParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary

Attributes inherited from RightAWSParser

#full_tag_name, #result, #tag, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from RightAWSParser

#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=

Constructor Details

This class inherits a constructor from RightAws::RightAWSParser

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightAws::RightAWSParser

Instance Method Details

#resetObject



475
476
477
# File 'lib/elb/right_elb_interface.rb', line 475

def reset
  @result = []
end

#tagend(name) ⇒ Object



466
467
468
469
470
471
472
473
474
# File 'lib/elb/right_elb_interface.rb', line 466

def tagend(name)
  case name
  when 'Description' then @item[:description] = @text
  when 'State'       then @item[:state]       = @text
  when 'InstanceId'  then @item[:instance_id] = @text
  when 'ReasonCode'  then @item[:reason_code] = @text
  when 'member'      then @result            << @item
  end
end

#tagstart(name, attributes) ⇒ Object

:nodoc:



463
464
465
# File 'lib/elb/right_elb_interface.rb', line 463

def tagstart(name, attributes)
  @item = {} if name == 'member'
end