Class: Order::CreateVcProcurementOrdersFromCsv::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/order/create_vc_procurement_orders_from_csv.rb

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(orders: nil, info_msgs: nil, errors: nil) ⇒ Result

Returns a new instance of Result.



8
# File 'app/services/order/create_vc_procurement_orders_from_csv.rb', line 8

def initialize(orders: nil, info_msgs: nil, errors: nil) = super

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



7
8
9
# File 'app/services/order/create_vc_procurement_orders_from_csv.rb', line 7

def errors
  @errors
end

#info_msgsObject (readonly)

Returns the value of attribute info_msgs

Returns:

  • (Object)

    the current value of info_msgs



7
8
9
# File 'app/services/order/create_vc_procurement_orders_from_csv.rb', line 7

def info_msgs
  @info_msgs
end

#ordersObject (readonly)

Returns the value of attribute orders

Returns:

  • (Object)

    the current value of orders



7
8
9
# File 'app/services/order/create_vc_procurement_orders_from_csv.rb', line 7

def orders
  @orders
end