Class: HncbEAtm::Response
- Inherits:
-
Object
- Object
- HncbEAtm::Response
- Defined in:
- lib/hncb_e_atm/response.rb
Instance Method Summary collapse
-
#initialize(params) ⇒ Response
constructor
A new instance of Response.
- #parse ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(params) ⇒ Response
Returns a new instance of Response.
6 7 8 |
# File 'lib/hncb_e_atm/response.rb', line 6 def initialize params @params = HncbEAtm::Utils.stringfy_keys(params) end |
Instance Method Details
#parse ⇒ Object
10 11 12 13 |
# File 'lib/hncb_e_atm/response.rb', line 10 def parse = Base64.decode64 @params["val"] Hash[URI::decode_www_form ] end |
#success? ⇒ Boolean
15 16 17 |
# File 'lib/hncb_e_atm/response.rb', line 15 def success? true end |