mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +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)
|
||||||
@ -16,4 +18,3 @@ module Reservations
|
|||||||
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)
|
||||||
@ -31,4 +33,3 @@ module Subscriptions
|
|||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
Loading…
Reference in New Issue
Block a user