Class: Backlog::Object::Serializable
- Inherits:
-
Object
- Object
- Backlog::Object::Serializable
- Defined in:
- lib/backlog/object.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
6 7 8 9 10 11 |
# File 'lib/backlog/object.rb', line 6 def to_h self.instance_variables.inject({}) {|ret, v| ret[v.to_s.gsub(/^@/, '')] = self.instance_variable_get(v.to_s) ret } end |