Slide 38
Slide 38 text
STREAMING ETL
#
product.rb
class
Product
include
Mongoid::Document
include
Mongoid::Timestamps
include
Products::Calculations
field
:name
field
:price,
:type
=>
Float,
:default
=>
0.0
field
:cost,
:type
=>
Float,
:default
=>
0.0
field
:profit_margin,
:type
=>
Float,
:default
=>
0.0
field
:keep_rate,
:type
=>
Float,
:default
=>
0.0
field
:quantity_shipped,
:type
=>
Integer,
:default
=>
0
field
:quantity_returned,
:type
=>
Integer,
:default
=>
0
field
:profitability,
:type
=>
Float,
:default
=>
0.0
field
:trunkability,
:type
=>
Float,
:default
=>
0.0
field
:positive_feedback,
:type
=>
Array,
:default
=>
[]
field
:negative_feedback,
:type
=>
Array,
:default
=>
[]
...