mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
improved ruby syntax to match coding rules in some services
This commit is contained in:
parent
21c7484396
commit
4dfe02bebf
@ -1,5 +1,7 @@
|
||||
module Reservations
|
||||
class Reserve
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Provides helper methods for Reservation actions
|
||||
class Reservations::Reserve
|
||||
attr_accessor :user_id, :operator_id
|
||||
|
||||
def initialize(user_id, operator_id)
|
||||
@ -15,5 +17,4 @@ module Reservations
|
||||
reservation.save_with_payment(operator_id, coupon)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -1,5 +1,7 @@
|
||||
module Subscriptions
|
||||
class Subscribe
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Provides helper methods for Subscription actions
|
||||
class Subscriptions::Subscribe
|
||||
attr_accessor :user_id, :operator_id
|
||||
|
||||
def initialize(user_id, operator_id)
|
||||
@ -30,5 +32,4 @@ module Subscriptions
|
||||
end
|
||||
false
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user