Class: InvestTinkoff::V1::Response
- Inherits:
-
Object
- Object
- InvestTinkoff::V1::Response
- Defined in:
- lib/invest_tinkoff/v1/response.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.create(response) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/invest_tinkoff/v1/response.rb', line 11 def self.create response attributes = response.parsed_response || {} new( attributes['trackingId'], attributes['status'], attributes['payload'], response.code ) end |
Instance Method Details
#success? ⇒ Boolean
21 22 23 |
# File 'lib/invest_tinkoff/v1/response.rb', line 21 def success? status == 'Ok' end |