Module: Virginity::StructuredTextAsJson
Instance Method Summary collapse
Instance Method Details
#as_json(options = {}) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/virginity/api_extensions.rb', line 28 def as_json( = {}) hash = {} components.each do |c| hash[c.to_s] = send(c) end field_as_json(hash, ) end |