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



62
63
64
# File 'lib/necropsy/models.rb', line 62

def dynamic
  @dynamic
end

#extendsObject (readonly)

Returns the value of attribute extends

Returns:

  • (Object)

    the current value of extends



62
63
64
# File 'lib/necropsy/models.rb', line 62

def extends
  @extends
end

#fileObject (readonly)

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



62
63
64
# File 'lib/necropsy/models.rb', line 62

def file
  @file
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



62
63
64
# File 'lib/necropsy/models.rb', line 62

def id
  @id
end

#includesObject (readonly)

Returns the value of attribute includes

Returns:

  • (Object)

    the current value of includes



62
63
64
# File 'lib/necropsy/models.rb', line 62

def includes
  @includes
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



62
63
64
# File 'lib/necropsy/models.rb', line 62

def kind
  @kind
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



62
63
64
# File 'lib/necropsy/models.rb', line 62

def line
  @line
end

#prependsObject (readonly)

Returns the value of attribute prepends

Returns:

  • (Object)

    the current value of prepends



62
63
64
# File 'lib/necropsy/models.rb', line 62

def prepends
  @prepends
end

#superclassObject (readonly)

Returns the value of attribute superclass

Returns:

  • (Object)

    the current value of superclass



62
63
64
# File 'lib/necropsy/models.rb', line 62

def superclass
  @superclass
end

#superclass_candidatesObject (readonly)

Returns the value of attribute superclass_candidates

Returns:

  • (Object)

    the current value of superclass_candidates



62
63
64
# File 'lib/necropsy/models.rb', line 62

def superclass_candidates
  @superclass_candidates
end

Instance Method Details

#to_hObject



74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/necropsy/models.rb', line 74

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