mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
replace attr with attr_reader
This commit is contained in:
committed by
Konrad
parent
fff0b1e577
commit
639567e903
@@ -3,7 +3,7 @@
|
||||
class Invoice
|
||||
class DataPresenter
|
||||
class Base
|
||||
attr :data
|
||||
attr_reader :data
|
||||
|
||||
def initialize(data)
|
||||
@data = data
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class InvoiceDataGenerator
|
||||
attr :order
|
||||
attr_reader :order
|
||||
|
||||
def initialize(order)
|
||||
@order = order
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class OrderInvoiceComparator
|
||||
attr :order
|
||||
attr_reader :order
|
||||
|
||||
def initialize(order)
|
||||
@order = order
|
||||
|
||||
Reference in New Issue
Block a user