Module: Fortnox::API::Mapper
- Defined in:
- lib/fortnox/api/mappers.rb,
lib/fortnox/api/mappers/base.rb,
lib/fortnox/api/mappers/order.rb,
lib/fortnox/api/mappers/article.rb,
lib/fortnox/api/mappers/invoice.rb,
lib/fortnox/api/mappers/project.rb,
lib/fortnox/api/mappers/customer.rb,
lib/fortnox/api/mappers/order_row.rb,
lib/fortnox/api/mappers/invoice_row.rb,
lib/fortnox/api/mappers/base/to_json.rb,
lib/fortnox/api/mappers/base/from_json.rb,
lib/fortnox/api/mappers/edi_information.rb,
lib/fortnox/api/mappers/default_templates.rb,
lib/fortnox/api/mappers/email_information.rb,
lib/fortnox/api/mappers/default_delivery_types.rb
Defined Under Namespace
Modules: FromJSON, ToJSON Classes: Article, Base, Customer, DefaultDeliveryTypes, DefaultTemplates, EDIInformation, EmailInformation, Invoice, InvoiceRow, Order, OrderRow, Project
Constant Summary collapse
- Identity =
->(value){ value }
- Date =
->(value){ value.to_s }
- Array =
->(array) do array.each_with_object( [] ) do |item, converted_array| name = Fortnox::API::Mapper::Base.canonical_name_sym( item ) converted_array << Fortnox::API::Registry[ name ].call( item ) end end