Class: Arbetsformedlingen::API::Values::MatchningPage

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/arbetsformedlingen/api/values/matchning_result_values.rb

Instance Method Summary collapse

Instance Method Details

#each(&block) ⇒ Object



21
22
23
# File 'lib/arbetsformedlingen/api/values/matchning_result_values.rb', line 21

def each(&block)
  data.each(&block)
end

#success?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/arbetsformedlingen/api/values/matchning_result_values.rb', line 32

def success?
  success
end

#to_hObject



25
26
27
28
29
30
# File 'lib/arbetsformedlingen/api/values/matchning_result_values.rb', line 25

def to_h
  hash = super.to_h
  hash.delete(:response) # don't return the raw response object
  hash[:data].map!(&:to_h)
  hash
end