Class: IaPostBackService
- Inherits:
-
ApplicationService
- Object
- ApplicationService
- IaPostBackService
- Defined in:
- app/services/ia_post_back_service.rb
Instance Attribute Summary collapse
-
#click_id ⇒ Object
readonly
Returns the value of attribute click_id.
-
#reservation ⇒ Object
readonly
Returns the value of attribute reservation.
Attributes inherited from ApplicationService
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(reservation_id, click_id) ⇒ IaPostBackService
constructor
A new instance of IaPostBackService.
Methods inherited from ApplicationService
Constructor Details
#initialize(reservation_id, click_id) ⇒ IaPostBackService
Returns a new instance of IaPostBackService.
4 5 6 7 |
# File 'app/services/ia_post_back_service.rb', line 4 def initialize(reservation_id, click_id) @reservation = Reservation.fetch reservation_id @click_id = click_id end |
Instance Attribute Details
#click_id ⇒ Object (readonly)
Returns the value of attribute click_id.
2 3 4 |
# File 'app/services/ia_post_back_service.rb', line 2 def click_id @click_id end |
#reservation ⇒ Object (readonly)
Returns the value of attribute reservation.
2 3 4 |
# File 'app/services/ia_post_back_service.rb', line 2 def reservation @reservation end |
Instance Method Details
#execute ⇒ Object
9 10 11 |
# File 'app/services/ia_post_back_service.rb', line 9 def execute Faraday.get to_url end |