Sha256: d560a245b8f1028c8ab903e281b608ff9b0e379abbacdcbf9aeb93b5b3998d18

Contents?: true

Size: 533 Bytes

Versions: 4

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

module Roseflow
  module LinkedIn
    class JobListEntry < Dry::Struct
      attribute :company, Types::String
      attribute :company_url, Types::String
      attribute :job_title, Types::String
      attribute :job_url, Types::String
      attribute :list_date, Types::String
      attribute :location, Types::String

      def self.from(input)
        entries = input.dig("job")
        return [] unless entries
        entries.map { |entry| new(entry.symbolize_keys) }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
roseflow-proxycurl-0.5.5 lib/roseflow/linkedin/job_list_entry.rb
roseflow-proxycurl-0.5.2 lib/roseflow/linkedin/job_list_entry.rb
roseflow-proxycurl-0.5.1 lib/roseflow/linkedin/job_list_entry.rb
roseflow-proxycurl-0.5.0 lib/roseflow/linkedin/job_list_entry.rb