Class: PartnerService::MenuSections::ExportMenuSectionsService
- Inherits:
-
ApplicationService
- Object
- ApplicationService
- PartnerService::MenuSections::ExportMenuSectionsService
- Defined in:
- app/services/partner_service/menu_sections/export_menu_sections_service.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#date_filter_type ⇒ Object
Returns the value of attribute date_filter_type.
-
#date_from ⇒ Object
Returns the value of attribute date_from.
-
#date_to ⇒ Object
Returns the value of attribute date_to.
-
#menu_items_ids ⇒ Object
Returns the value of attribute menu_items_ids.
-
#menu_items_type ⇒ Object
Returns the value of attribute menu_items_type.
-
#menu_sections ⇒ Object
Returns the value of attribute menu_sections.
-
#restaurant_id ⇒ Object
Returns the value of attribute restaurant_id.
Attributes inherited from ApplicationService
Instance Method Summary collapse
- #download ⇒ Object
-
#initialize(args) ⇒ ExportMenuSectionsService
constructor
A new instance of ExportMenuSectionsService.
Methods inherited from ApplicationService
Constructor Details
#initialize(args) ⇒ ExportMenuSectionsService
Returns a new instance of ExportMenuSectionsService.
12 13 14 15 16 17 18 19 20 |
# File 'app/services/partner_service/menu_sections/export_menu_sections_service.rb', line 12 def initialize(args) I18n.locale = :en args.to_h.with_indifferent_access.each do |k, v| next if k.to_s == :use_long_process.to_s send("#{k}=".to_sym, v) end @menu_sections = end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
7 8 9 |
# File 'app/services/partner_service/menu_sections/export_menu_sections_service.rb', line 7 def date @date end |
#date_filter_type ⇒ Object
Returns the value of attribute date_filter_type.
7 8 9 |
# File 'app/services/partner_service/menu_sections/export_menu_sections_service.rb', line 7 def date_filter_type @date_filter_type end |
#date_from ⇒ Object
Returns the value of attribute date_from.
7 8 9 |
# File 'app/services/partner_service/menu_sections/export_menu_sections_service.rb', line 7 def date_from @date_from end |
#date_to ⇒ Object
Returns the value of attribute date_to.
7 8 9 |
# File 'app/services/partner_service/menu_sections/export_menu_sections_service.rb', line 7 def date_to @date_to end |
#menu_items_ids ⇒ Object
Returns the value of attribute menu_items_ids.
7 8 9 |
# File 'app/services/partner_service/menu_sections/export_menu_sections_service.rb', line 7 def @menu_items_ids end |
#menu_items_type ⇒ Object
Returns the value of attribute menu_items_type.
7 8 9 |
# File 'app/services/partner_service/menu_sections/export_menu_sections_service.rb', line 7 def @menu_items_type end |
#menu_sections ⇒ Object
Returns the value of attribute menu_sections.
7 8 9 |
# File 'app/services/partner_service/menu_sections/export_menu_sections_service.rb', line 7 def @menu_sections end |
#restaurant_id ⇒ Object
Returns the value of attribute restaurant_id.
7 8 9 |
# File 'app/services/partner_service/menu_sections/export_menu_sections_service.rb', line 7 def restaurant_id @restaurant_id end |
Instance Method Details
#download ⇒ Object
22 23 24 25 26 |
# File 'app/services/partner_service/menu_sections/export_menu_sections_service.rb', line 22 def download self. = download_link end |