Class: Billimatic::Response
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Billimatic::Response
- Defined in:
- lib/billimatic/response.rb
Instance Method Summary collapse
Instance Method Details
#resolve!(&block) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/billimatic/response.rb', line 8 def resolve!(&block) if success? #TODO: test redirect if need block_given? ? yield(self) : self elsif timed_out? timeout! else error! end end |