Class: RightAws::ElbInterface::DescribeInstanceHealthParser

Inherits:
RightAWSParser
  • Object
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



550
551
552
# File 'lib/elb/right_elb_interface.rb', line 550

def reset
  @result = []
end

#tagend(name) ⇒ Object



541
542
543
544
545
546
547
548
549
# File 'lib/elb/right_elb_interface.rb', line 541

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:



538
539
540
# File 'lib/elb/right_elb_interface.rb', line 538

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