Class: Mannequin::Number
- Inherits:
-
Object
- Object
- Mannequin::Number
- Defined in:
- lib/mannequin/number.rb
Instance Attribute Summary collapse
-
#digits_1 ⇒ Object
readonly
Returns the value of attribute digits_1.
-
#digits_2 ⇒ Object
readonly
Returns the value of attribute digits_2.
-
#digits_3 ⇒ Object
readonly
Returns the value of attribute digits_3.
-
#digits_4 ⇒ Object
readonly
Returns the value of attribute digits_4.
-
#digits_5 ⇒ Object
readonly
Returns the value of attribute digits_5.
-
#digits_6 ⇒ Object
readonly
Returns the value of attribute digits_6.
-
#digits_7 ⇒ Object
readonly
Returns the value of attribute digits_7.
-
#digits_8 ⇒ Object
readonly
Returns the value of attribute digits_8.
-
#digits_9 ⇒ Object
readonly
Returns the value of attribute digits_9.
Instance Method Summary collapse
-
#initialize ⇒ Number
constructor
A new instance of Number.
Constructor Details
#initialize ⇒ Number
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_1 ⇒ Object (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_2 ⇒ Object (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_3 ⇒ Object (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_4 ⇒ Object (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_5 ⇒ Object (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_6 ⇒ Object (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_7 ⇒ Object (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_8 ⇒ Object (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_9 ⇒ Object (readonly)
Returns the value of attribute digits_9.
3 4 5 |
# File 'lib/mannequin/number.rb', line 3 def digits_9 @digits_9 end |