1
0
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:
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
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

View File

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