Method: ProcessOut::ErrorCodes#fill_with_data
- Defined in:
- lib/processout/error_codes.rb
#fill_with_data(data) ⇒ Object
Fills the object with data coming from the API Params:
data-
Hashof data coming from the API
57 58 59 60 61 62 63 64 65 66 |
# File 'lib/processout/error_codes.rb', line 57 def fill_with_data(data) if data.nil? return self end if data.include? "gateway" self.gateway = data["gateway"] end self end |