DEV: Remove hash-like access from service contracts

We decided to keep only one way to access values from a contract. This
patch thus removes the hash-like access from contracts.
This commit is contained in:
Loïc Guitaut
2024-10-28 17:21:59 +01:00
committed by Loïc Guitaut
parent 4d0ed2e146
commit 2f334964f2
50 changed files with 293 additions and 257 deletions

View File

@ -17,10 +17,6 @@ class Service::ContractBase
@__options__
end
def [](key)
public_send(key)
end
def to_hash
attributes.symbolize_keys
end