Class: Cycromatic::Complexity

Inherits:
Object
  • Object
show all
Defined in:
lib/cycromatic/complexity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, node:, value:) ⇒ Complexity

Returns a new instance of Complexity.



7
8
9
10
11
# File 'lib/cycromatic/complexity.rb', line 7

def initialize(type:, node:, value:)
  @type = type
  @node = node
  @value = value
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



4
5
6
# File 'lib/cycromatic/complexity.rb', line 4

def node
  @node
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/cycromatic/complexity.rb', line 3

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/cycromatic/complexity.rb', line 5

def value
  @value
end