Class: C2PO::C2PORecord

Inherits:
Hash
  • Object
show all
Defined in:
lib/c2po/records.rb

Instance Method Summary collapse

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_ednObject



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