Class: GOM::Object::Inspector

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

Overview

Inspect an object and returns it’s class and it’s properties

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ Inspector

Returns a new instance of Inspector.



7
8
9
# File 'lib/gom/object/inspector.rb', line 7

def initialize(object)
  @object = object
end

Instance Attribute Details

#objectObject

Returns the value of attribute object.



5
6
7
# File 'lib/gom/object/inspector.rb', line 5

def object
  @object
end

Instance Method Details

#draftObject



11
12
13
14
15
16
17
# File 'lib/gom/object/inspector.rb', line 11

def draft
  initialize_draft
  set_class
  set_properties
  set_relations
  @draft
end