Class: HncbEAtm::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/hncb_e_atm/response.rb

Instance Method Summary collapse

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

#parseObject



10
11
12
13
# File 'lib/hncb_e_atm/response.rb', line 10

def parse
  options_string = Base64.decode64 @params["val"]
  Hash[URI::decode_www_form options_string]
end

#success?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/hncb_e_atm/response.rb', line 15

def success?
  true
end