Module: UEncode::RateElement

Includes:
AttrSetting
Defined in:
lib/uencode/elements.rb

Constant Summary collapse

ATTRIBUTES =
[:numerator, :denominator]

Instance Method Summary collapse

Methods included from AttrSetting

included, #initialize, #set_attributes

Instance Method Details

#==(other) ⇒ Object



49
50
51
# File 'lib/uencode/elements.rb', line 49

def ==(other)
  numerator == other.numerator && denominator == other.denominator
end

#to_xmlObject



40
41
42
43
44
45
46
47
# File 'lib/uencode/elements.rb', line 40

def to_xml
  %Q{
    <#{root_name}>
      <numerator>#{numerator}</numerator>
      <denominator>#{denominator}</denominator>
    </#{root_name}>
  }
end