Class: Necropsy::ClassInfo

Inherits:
Data
  • Object
show all
Defined in:
lib/necropsy/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dynamicObject (readonly)

Returns the value of attribute dynamic

Returns:

  • (Object)

    the current value of dynamic



70
71
72
# File 'lib/necropsy/models.rb', line 70

def dynamic
  @dynamic
end

#extendsObject (readonly)

Returns the value of attribute extends

Returns:

  • (Object)

    the current value of extends



70
71
72
# File 'lib/necropsy/models.rb', line 70

def extends
  @extends
end

#fileObject (readonly)

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



70
71
72
# File 'lib/necropsy/models.rb', line 70

def file
  @file
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



70
71
72
# File 'lib/necropsy/models.rb', line 70

def id
  @id
end

#includesObject (readonly)

Returns the value of attribute includes

Returns:

  • (Object)

    the current value of includes



70
71
72
# File 'lib/necropsy/models.rb', line 70

def includes
  @includes
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



70
71
72
# File 'lib/necropsy/models.rb', line 70

def kind
  @kind
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



70
71
72
# File 'lib/necropsy/models.rb', line 70

def line
  @line
end

#prependsObject (readonly)

Returns the value of attribute prepends

Returns:

  • (Object)

    the current value of prepends



70
71
72
# File 'lib/necropsy/models.rb', line 70

def prepends
  @prepends
end

#superclassObject (readonly)

Returns the value of attribute superclass

Returns:

  • (Object)

    the current value of superclass



70
71
72
# File 'lib/necropsy/models.rb', line 70

def superclass
  @superclass
end

#superclass_candidatesObject (readonly)

Returns the value of attribute superclass_candidates

Returns:

  • (Object)

    the current value of superclass_candidates



70
71
72
# File 'lib/necropsy/models.rb', line 70

def superclass_candidates
  @superclass_candidates
end

Instance Method Details

#to_hObject



82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'lib/necropsy/models.rb', line 82

def to_h
  {
    'id' => id,
    'kind' => kind.to_s,
    'file' => file,
    'line' => line,
    'superclass' => superclass,
    'superclass_candidates' => superclass_candidates,
    'includes' => includes,
    'prepends' => prepends,
    'extends' => extends,
    'dynamic' => dynamic
  }
end