Class: Rubyplat::Responses::RefillInfoResponse
- Defined in:
- lib/rubyplat/responses/refill_info_response.rb
Instance Method Summary collapse
-
#decoded_data ⇒ String
UTF-8 representation of DATA field.
- #success? ⇒ Boolean
Methods inherited from Response
from_response_string, #initialize
Methods included from Utils::Parser
Constructor Details
This class inherits a constructor from Rubyplat::Responses::Response
Instance Method Details
#decoded_data ⇒ String
UTF-8 representation of DATA field
10 11 12 |
# File 'lib/rubyplat/responses/refill_info_response.rb', line 10 def decoded_data URI.unescape(@data).encode('UTF-8', 'Windows-1251') end |
#success? ⇒ Boolean
4 5 6 |
# File 'lib/rubyplat/responses/refill_info_response.rb', line 4 def success? result.to_i == 0 && error.to_i == 0 end |