Class: BaseData

Inherits:
Object
  • Object
show all
Defined in:
lib/galileo_processing/base_data.rb

Instance Method Summary collapse

Instance Method Details

#get_data(response, param) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/galileo_processing/base_data.rb', line 2

def get_data(response, param)
  if response.kind_of? Hash
    if response[param]
      return response[param]
    end
  else
    if response.param
      return response.param
    end
  end
  return nil
end