Module: Modules::Reservations::Links
- Included in:
- Aoa::Reservations::SerializerHelper, Api::V5::ReservationSerializer, ReservationCpt::Serializers::ProfileSerializer, Vendors::Reservations::SerializerHelper
- Defined in:
- app/my_lib/modules/reservations/links.rb
Overview
typed: ignore
Instance Method Summary collapse
- #cancel_link(reservation) ⇒ Object
- #modify_link(reservation) ⇒ Object
- #review_link(reservation) ⇒ Object
- #share_link(reservation) ⇒ Object
Instance Method Details
#cancel_link(reservation) ⇒ Object
11 12 13 |
# File 'app/my_lib/modules/reservations/links.rb', line 11 def cancel_link(reservation) __url_helpers.manage_my_reservations_url(hash: reservation.encrypted_id, format: :html) end |
#modify_link(reservation) ⇒ Object
7 8 9 |
# File 'app/my_lib/modules/reservations/links.rb', line 7 def modify_link(reservation) __url_helpers.manage_my_reservations_url(hash: reservation.encrypted_id, format: :html) end |
#review_link(reservation) ⇒ Object
15 16 17 |
# File 'app/my_lib/modules/reservations/links.rb', line 15 def review_link(reservation) __url_helpers.new_booking_review_url(booking_id: reservation.encrypted_id, format: :html) end |
#share_link(reservation) ⇒ Object
3 4 5 |
# File 'app/my_lib/modules/reservations/links.rb', line 3 def share_link(reservation) __url_helpers.forward_email_form_url(reservation_id: reservation.encrypted_id, format: :html) end |