Class: UnsuccessfulResult
- Inherits:
-
Object
- Object
- UnsuccessfulResult
- Defined in:
- lib/mock_braintree/unsuccessful_result.rb
Instance Attribute Summary collapse
-
#transaction ⇒ Object
readonly
Returns the value of attribute transaction.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ UnsuccessfulResult
constructor
A new instance of UnsuccessfulResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(hash = {}) ⇒ UnsuccessfulResult
Returns a new instance of UnsuccessfulResult.
3 4 5 |
# File 'lib/mock_braintree/unsuccessful_result.rb', line 3 def initialize(hash = {}) @transaction = Transaction.new(hash) end |
Instance Attribute Details
#transaction ⇒ Object (readonly)
Returns the value of attribute transaction.
2 3 4 |
# File 'lib/mock_braintree/unsuccessful_result.rb', line 2 def transaction @transaction end |
Instance Method Details
#success? ⇒ Boolean
7 8 9 |
# File 'lib/mock_braintree/unsuccessful_result.rb', line 7 def success? false end |