Class: Rubyplat::Responses::RefillInfoResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/rubyplat/responses/refill_info_response.rb

Instance Method Summary collapse

Methods inherited from Response

from_response_string, #initialize

Methods included from Utils::Parser

#parse

Constructor Details

This class inherits a constructor from Rubyplat::Responses::Response

Instance Method Details

#decoded_dataString

UTF-8 representation of DATA field

Returns:

  • (String)

    refills info def decoded_data



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

Returns:

  • (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