Class: Report::OrdersOriginReport::OrdersReport::Result
- Inherits:
-
Data
- Object
- Data
- Report::OrdersOriginReport::OrdersReport::Result
- Defined in:
- app/services/report/orders_origin_report/orders_report.rb
Instance Attribute Summary collapse
-
#breakdown ⇒ Object
readonly
Returns the value of attribute breakdown.
-
#current_year ⇒ Object
readonly
Returns the value of attribute current_year.
-
#date_from ⇒ Object
readonly
Returns the value of attribute date_from.
-
#date_to ⇒ Object
readonly
Returns the value of attribute date_to.
-
#grouping ⇒ Object
readonly
Returns the value of attribute grouping.
-
#online_orders_comp ⇒ Object
readonly
Returns the value of attribute online_orders_comp.
-
#online_orders_pie ⇒ Object
readonly
Returns the value of attribute online_orders_pie.
-
#online_orders_stk ⇒ Object
readonly
Returns the value of attribute online_orders_stk.
-
#online_orders_tb ⇒ Object
readonly
Returns the value of attribute online_orders_tb.
-
#previous_year ⇒ Object
readonly
Returns the value of attribute previous_year.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(success: nil, online_orders_pie: [], online_orders_stk: [], online_orders_tb: [], online_orders_comp: [], breakdown: [], grouping: nil, date_from: nil, date_to: nil, current_year: nil, previous_year: nil) ⇒ Result
constructor
A new instance of Result.
- #success? ⇒ Boolean
Constructor Details
#initialize(success: nil, online_orders_pie: [], online_orders_stk: [], online_orders_tb: [], online_orders_comp: [], breakdown: [], grouping: nil, date_from: nil, date_to: nil, current_year: nil, previous_year: nil) ⇒ Result
Returns a new instance of Result.
4 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 4 def initialize(success: nil, online_orders_pie: [], online_orders_stk: [], online_orders_tb: [], online_orders_comp: [], breakdown: [], grouping: nil, date_from: nil, date_to: nil, current_year: nil, previous_year: nil) = super |
Instance Attribute Details
#breakdown ⇒ Object (readonly)
Returns the value of attribute breakdown
3 4 5 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 3 def breakdown @breakdown end |
#current_year ⇒ Object (readonly)
Returns the value of attribute current_year
3 4 5 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 3 def current_year @current_year end |
#date_from ⇒ Object (readonly)
Returns the value of attribute date_from
3 4 5 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 3 def date_from @date_from end |
#date_to ⇒ Object (readonly)
Returns the value of attribute date_to
3 4 5 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 3 def date_to @date_to end |
#grouping ⇒ Object (readonly)
Returns the value of attribute grouping
3 4 5 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 3 def grouping @grouping end |
#online_orders_comp ⇒ Object (readonly)
Returns the value of attribute online_orders_comp
3 4 5 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 3 def online_orders_comp @online_orders_comp end |
#online_orders_pie ⇒ Object (readonly)
Returns the value of attribute online_orders_pie
3 4 5 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 3 def online_orders_pie @online_orders_pie end |
#online_orders_stk ⇒ Object (readonly)
Returns the value of attribute online_orders_stk
3 4 5 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 3 def online_orders_stk @online_orders_stk end |
#online_orders_tb ⇒ Object (readonly)
Returns the value of attribute online_orders_tb
3 4 5 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 3 def online_orders_tb @online_orders_tb end |
#previous_year ⇒ Object (readonly)
Returns the value of attribute previous_year
3 4 5 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 3 def previous_year @previous_year end |
#success ⇒ Object (readonly)
Returns the value of attribute success
3 4 5 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 3 def success @success end |
Instance Method Details
#success? ⇒ Boolean
5 |
# File 'app/services/report/orders_origin_report/orders_report.rb', line 5 def success? = success |