Module: UEncode::RateElement
Constant Summary
collapse
- ATTRIBUTES =
[:numerator, :denominator]
Instance Method Summary
collapse
included, #initialize, #set_attributes
Instance Method Details
#==(other) ⇒ Object
44
45
46
|
# File 'lib/uencode/elements.rb', line 44
def ==(other)
numerator == other.numerator && denominator == other.denominator
end
|
#to_xml ⇒ Object
35
36
37
38
39
40
41
42
|
# File 'lib/uencode/elements.rb', line 35
def to_xml
%Q{
<#{root_name}>
<numerator>#{numerator}</numerator>
<denominator>#{denominator}</denominator>
</#{root_name}>
}
end
|