class Arbetsformedlingen::API::Values::Ad

Public Instance Methods

to_h() click to toggle source
Calls superclass method
# 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