replace attr with attr_reader

This commit is contained in:
Mohamed ABDELLANI
2023-05-25 08:25:23 +01:00
committed by Konrad
parent fff0b1e577
commit 639567e903
3 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
class Invoice
class DataPresenter
class Base
attr :data
attr_reader :data
def initialize(data)
@data = data

View File

@@ -1,7 +1,7 @@
# frozen_string_literal: true
class InvoiceDataGenerator
attr :order
attr_reader :order
def initialize(order)
@order = order

View File

@@ -1,7 +1,7 @@
# frozen_string_literal: true
class OrderInvoiceComparator
attr :order
attr_reader :order
def initialize(order)
@order = order