Method: OpenBEL::Model::RdfResource#to_hash
- Defined in:
- lib/openbel/api/model/rdf_resource.rb
#to_hash ⇒ Object
61 62 63 64 65 |
# File 'lib/openbel/api/model/rdf_resource.rb', line 61 def to_hash instance_variables.inject({}) { |res, attr| res.merge({attr[1..-1] => instance_variable_get(attr)}) } end |