Sha256: 9596e8fb37e8c36901f8c462e772b4f152d14629159ec0ceb5f7719d8727ffcb
Contents?: true
Size: 574 Bytes
Versions: 4
Compression:
Stored size: 574 Bytes
Contents
module Arbetsformedlingen module API module Values SoklistaPage = KeyStruct.new( :list_name, :total_ads, :total_vacancies, :data, :raw_data ) class SoklistaPage include Enumerable def each(&block) data.each(&block) end def to_h hash = super.to_h hash[:data].map!(&:to_h) hash end end SoklistaResult = KeyStruct.new( :id, :name, :total_ads, :total_vacancies ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems