Class: ProjectEulerCli::Problem

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

Constant Summary collapse

@@total =
0

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#difficultyObject

Returns the value of attribute difficulty.



4
5
6
# File 'lib/project_euler_cli/problem.rb', line 4

def difficulty
  @difficulty
end

#publishedObject

Returns the value of attribute published.



4
5
6
# File 'lib/project_euler_cli/problem.rb', line 4

def published
  @published
end

#solved_byObject

Returns the value of attribute solved_by.



4
5
6
# File 'lib/project_euler_cli/problem.rb', line 4

def solved_by
  @solved_by
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/project_euler_cli/problem.rb', line 4

def title
  @title
end

Class Method Details

.totalObject



8
9
10
# File 'lib/project_euler_cli/problem.rb', line 8

def self.total
  @@total
end

.total=(total) ⇒ Object



12
13
14
# File 'lib/project_euler_cli/problem.rb', line 12

def self.total=(total)
  @@total = total
end