Class: Auger::Result
- Inherits:
-
Object
- Object
- Auger::Result
- Defined in:
- lib/auger/result.rb
Instance Attribute Summary collapse
-
#outcome ⇒ Object
Returns the value of attribute outcome.
-
#status ⇒ Object
Returns the value of attribute status.
-
#test ⇒ Object
Returns the value of attribute test.
Instance Method Summary collapse
-
#initialize(outcome = nil, status = outcome) ⇒ Result
constructor
optional args are outcome, status, Hash of instance variables def initialize(*args) hash = args.last.is_a?(Hash) ? args.pop : {} (@outcome, @status) = args hash.each { |k,v| self.instance_variable_set(â@#kâ, v) } end.
Constructor Details
#initialize(outcome = nil, status = outcome) ⇒ Result
optional args are outcome, status, Hash of instance variables def initialize(*args)
hash = args.last.is_a?(Hash) ? args.pop : {}
(@outcome, @status) = args
hash.each { |k,v| self.instance_variable_set("@#{k}", v) }
end
24 25 26 27 |
# File 'lib/auger/result.rb', line 24 def initialize(outcome = nil, status = outcome) @outcome = outcome @status = status end |
Instance Attribute Details
#outcome ⇒ Object
Returns the value of attribute outcome.
4 5 6 |
# File 'lib/auger/result.rb', line 4 def outcome @outcome end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/auger/result.rb', line 4 def status @status end |
#test ⇒ Object
Returns the value of attribute test.
4 5 6 |
# File 'lib/auger/result.rb', line 4 def test @test end |