Class: Wellness::Detail
- Inherits:
-
Object
- Object
- Wellness::Detail
- Defined in:
- lib/wellness/detail.rb
Overview
The parent class of all details that need to run.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
- #call ⇒ Object
- #check ⇒ Hash
-
#initialize(name, options = {}) ⇒ Detail
constructor
A new instance of Detail.
Constructor Details
#initialize(name, options = {}) ⇒ Detail
Returns a new instance of Detail.
8 9 10 11 12 |
# File 'lib/wellness/detail.rb', line 8 def initialize(name, ={}) @name = name @options = @result = {} end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/wellness/detail.rb', line 6 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/wellness/detail.rb', line 6 def @options end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/wellness/detail.rb', line 6 def result @result end |
Instance Method Details
#call ⇒ Object
14 15 16 17 |
# File 'lib/wellness/detail.rb', line 14 def call @result = self.check self end |
#check ⇒ Hash
20 21 22 |
# File 'lib/wellness/detail.rb', line 20 def check {} end |