class Nfe::Helpers::XmlModel::AttributeFloat
Public Instance Methods
format()
click to toggle source
# File lib/nfe/helpers/xml_model/attribute_float.rb, line 5 def format @format || "%0.2f" end
Private Instance Methods
add_element(attribute)
click to toggle source
# File lib/nfe/helpers/xml_model/attribute_float.rb, line 14 def add_element(attribute) format % attribute end
get_value(value)
click to toggle source
# File lib/nfe/helpers/xml_model/attribute_float.rb, line 10 def get_value(value) value.text.to_f end