Sha256: de2349453aec6db199ea3e3be9afc6bf66059081db5c6aceb9afa783bc2732ff
Contents?: true
Size: 351 Bytes
Versions: 2
Compression:
Stored size: 351 Bytes
Contents
class EotbSubject attr_reader :subject def initialize(object) @subject = {} @subject.merge(object).each { |key, value| subject[key] = value.inspect } end def to_json @subject = JSON.generate(@subject) end # def to_hash # @subject = JSON.parse(@subject) # end def inspect @subject.inspect end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eotb-0.2.1 | lib/eotb_subject.rb |
eotb-0.2.0 | lib/eotb_subject.rb |