Class: EdoolsSdk::EdoolsBase
- Inherits:
-
Object
- Object
- EdoolsSdk::EdoolsBase
- Defined in:
- lib/edools_sdk/edools_base.rb
Overview
EdoolsBase class
Direct Known Subclasses
Instance Method Summary collapse
-
#to_h ⇒ Object
Parse object to Hash.
Instance Method Details
#to_h ⇒ Object
Parse object to Hash
7 8 9 10 11 |
# File 'lib/edools_sdk/edools_base.rb', line 7 def to_h hash = {} instance_variables.each {|var| hash[var.to_s.delete("@")] = instance_variable_get(var) } hash end |