Sha256: 5846e084efbf988f5239543988ba33d8137bdf281a44c84b6065dd3b530a6f9f
Contents?: true
Size: 478 Bytes
Versions: 39
Compression:
Stored size: 478 Bytes
Contents
# frozen_string_literal: true module Lutaml module Model module JsonAdapter # Base class for JSON objects class JsonObject attr_reader :attributes def initialize(attributes = {}) @attributes = attributes end def [](key) @attributes[key] end def []=(key, value) @attributes[key] = value end def to_h @attributes end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems