Class: FlogBuilder::ScannedMethod

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, score, operators = []) ⇒ ScannedMethod

Returns a new instance of ScannedMethod.



55
56
57
58
59
# File 'lib/flog_builder.rb', line 55

def initialize(name, score, operators = [])
  @name = name
  @score = score.to_f
  @operators = operators
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



53
54
55
# File 'lib/flog_builder.rb', line 53

def name
  @name
end

#operatorsObject

Returns the value of attribute operators.



53
54
55
# File 'lib/flog_builder.rb', line 53

def operators
  @operators
end

#scoreObject

Returns the value of attribute score.



53
54
55
# File 'lib/flog_builder.rb', line 53

def score
  @score
end