Class: Backlog::Object::Serializable

Inherits:
Object
  • Object
show all
Defined in:
lib/backlog/object.rb

Direct Known Subclasses

FindCondition

Instance Method Summary collapse

Instance Method Details

#to_hObject



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