Class: C2PO::C2PORecord
- Inherits:
-
Hash
- Object
- Hash
- C2PO::C2PORecord
- Defined in:
- lib/c2po/records.rb
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ C2PORecord
constructor
A new instance of C2PORecord.
- #to_edn ⇒ Object
Constructor Details
#initialize(h = {}) ⇒ C2PORecord
Returns a new instance of C2PORecord.
3 4 5 |
# File 'lib/c2po/records.rb', line 3 def initialize(h={}) self.merge! h end |
Instance Method Details
#to_edn ⇒ Object
6 7 8 9 |
# File 'lib/c2po/records.rb', line 6 def to_edn _, prefix, name = self.class.name.split("::").map(&:downcase) EDN.tagout "com.keminglabs/c2po$#{prefix}$#{name}", {}.merge(self) end |