Class: Mannequin::Number

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNumber

Returns a new instance of Number.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/mannequin/number.rb', line 5

def initialize
  # Set variables from functions
  digits_1 = generated_large_random_number(1)
  digits_2 = generated_large_random_number(2)
  digits_3 = generated_large_random_number(3)
  digits_4 = generated_large_random_number(4)
  digits_5 = generated_large_random_number(5)
  digits_6 = generated_large_random_number(6)
  digits_7 = generated_large_random_number(7)
  digits_8 = generated_large_random_number(8)
  digits_9 = generated_large_random_number(9)
  
  # Initialize attributes
  @digits_1 = digits_1
  @digits_2 = digits_2
  @digits_3 = digits_3
  @digits_4 = digits_4
  @digits_5 = digits_5
  @digits_6 = digits_6
  @digits_7 = digits_7
  @digits_8 = digits_8
  @digits_9 = digits_9
end

Instance Attribute Details

#digits_1Object (readonly)

Returns the value of attribute digits_1.



3
4
5
# File 'lib/mannequin/number.rb', line 3

def digits_1
  @digits_1
end

#digits_2Object (readonly)

Returns the value of attribute digits_2.



3
4
5
# File 'lib/mannequin/number.rb', line 3

def digits_2
  @digits_2
end

#digits_3Object (readonly)

Returns the value of attribute digits_3.



3
4
5
# File 'lib/mannequin/number.rb', line 3

def digits_3
  @digits_3
end

#digits_4Object (readonly)

Returns the value of attribute digits_4.



3
4
5
# File 'lib/mannequin/number.rb', line 3

def digits_4
  @digits_4
end

#digits_5Object (readonly)

Returns the value of attribute digits_5.



3
4
5
# File 'lib/mannequin/number.rb', line 3

def digits_5
  @digits_5
end

#digits_6Object (readonly)

Returns the value of attribute digits_6.



3
4
5
# File 'lib/mannequin/number.rb', line 3

def digits_6
  @digits_6
end

#digits_7Object (readonly)

Returns the value of attribute digits_7.



3
4
5
# File 'lib/mannequin/number.rb', line 3

def digits_7
  @digits_7
end

#digits_8Object (readonly)

Returns the value of attribute digits_8.



3
4
5
# File 'lib/mannequin/number.rb', line 3

def digits_8
  @digits_8
end

#digits_9Object (readonly)

Returns the value of attribute digits_9.



3
4
5
# File 'lib/mannequin/number.rb', line 3

def digits_9
  @digits_9
end