Class: EdoolsSdk::EdoolsBase

Inherits:
Object
  • Object
show all
Defined in:
lib/edools_sdk/edools_base.rb

Overview

EdoolsBase class

Direct Known Subclasses

Course, Invitation, Product, School

Instance Method Summary collapse

Instance Method Details

#to_hObject

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