Sha256: d553abcc7d448ddfdfc42d7aa54f0dfa25cff414c88bd2a343339a1acd7be0ed
Contents?: true
Size: 422 Bytes
Versions: 5
Compression:
Stored size: 422 Bytes
Contents
module VaultTree class ContractPresenter attr_reader :contract def initialize(contract) @contract = contract end def as_json JSON.pretty_generate(contract_hash) end private def contract_hash {header: contract_header, vaults: contract_vaults} end def contract_header contract.header end def contract_vaults contract.vaults end end end
Version data entries
5 entries across 5 versions & 1 rubygems