1
0
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:
Sylvain 2019-04-25 15:09:37 +02:00
parent 21c7484396
commit 4dfe02bebf
2 changed files with 45 additions and 43 deletions

View File

@ -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

View File

@ -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