Class: Arbetsformedlingen::API::Values::Ad

Inherits:
Object
  • Object
show all
Defined in:
lib/arbetsformedlingen/api/values/ad_result_values.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



26
27
28
29
30
31
32
33
34
# File 'lib/arbetsformedlingen/api/values/ad_result_values.rb', line 26

def to_h
  hash = super.to_h
  hash.delete(:response) # don't return the raw response object
  hash[:terms] = hash[:terms].to_h
  hash[:application] = hash[:application].to_h
  hash[:workplace] = hash[:workplace].to_h
  hash[:requirements] = hash[:requirements].to_h
  hash
end