Class: Dice
- Inherits:
-
EDI::Service
- Object
- EDI::Service
- Dice
- Defined in:
- lib/edi/services/dice.rb
Instance Attribute Summary collapse
-
#dice_result ⇒ Object
Returns the value of attribute dice_result.
Attributes inherited from EDI::Service
Instance Method Summary collapse
Methods inherited from EDI::Service
Methods included from EDI::Environment
included, #validate_environment
Methods included from EDI::DSL
Constructor Details
This class inherits a constructor from EDI::Service
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class EDI::Service
Instance Attribute Details
#dice_result ⇒ Object
Returns the value of attribute dice_result.
2 3 4 |
# File 'lib/edi/services/dice.rb', line 2 def dice_result @dice_result end |
Instance Method Details
#run ⇒ Object
6 7 8 |
# File 'lib/edi/services/dice.rb', line 6 def run "You got a #{dice_result}" end |