mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-26 20:54:21 +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
|
# frozen_string_literal: true
|
||||||
class Reserve
|
|
||||||
|
# Provides helper methods for Reservation actions
|
||||||
|
class Reservations::Reserve
|
||||||
attr_accessor :user_id, :operator_id
|
attr_accessor :user_id, :operator_id
|
||||||
|
|
||||||
def initialize(user_id, operator_id)
|
def initialize(user_id, operator_id)
|
||||||
@ -15,5 +17,4 @@ module Reservations
|
|||||||
reservation.save_with_payment(operator_id, coupon)
|
reservation.save_with_payment(operator_id, coupon)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
module Subscriptions
|
# frozen_string_literal: true
|
||||||
class Subscribe
|
|
||||||
|
# Provides helper methods for Subscription actions
|
||||||
|
class Subscriptions::Subscribe
|
||||||
attr_accessor :user_id, :operator_id
|
attr_accessor :user_id, :operator_id
|
||||||
|
|
||||||
def initialize(user_id, operator_id)
|
def initialize(user_id, operator_id)
|
||||||
@ -30,5 +32,4 @@ module Subscriptions
|
|||||||
end
|
end
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
Loading…
x
Reference in New Issue
Block a user