Class: Cacofonix::Price
- Defined in:
- lib/cacofonix/elements/price.rb
Class Method Summary collapse
Methods inherited from Element
alias_accessor, #fetch, #fetch_all, #initialize, onix_boolean_flag, onix_code_from_list, onix_codes_from_list, onix_composite, onix_date_accessor, onix_space_separated_list, onix_spaced_codes_from_list, xml_accessor
Constructor Details
This class inherits a constructor from Cacofonix::Element
Class Method Details
.onix_decimal_accessor(name, tag_name) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/cacofonix/elements/price.rb', line 8 def self.onix_decimal_accessor(name, tag_name) = { :from => tag_name, :as => BigDecimal, :to_xml => Cacofonix::Formatters.decimal } xml_accessor(name, **) end |