Sha256: 28d3fbf512e6d85574886b5d8682265e8191c7423f20922d531f41b3281bdfe6

Contents?: true

Size: 432 Bytes

Versions: 8

Compression:

Stored size: 432 Bytes

Contents

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/extras/journal_entry'

module NetboxClientRuby
  module Extras
    class JournalEntries
      include Entities

      path 'extras/journal-entries.json'
      data_key 'results'
      count_key 'count'
      entity_creator :entity_creator

      private

      def entity_creator(raw_entity)
        JournalEntry.new raw_entity['id']
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
netbox-client-ruby-0.10.0 lib/netbox_client_ruby/api/extras/journal_entries.rb
netbox-client-ruby-0.9.0 lib/netbox_client_ruby/api/extras/journal_entries.rb
netbox-client-ruby-0.8.0 lib/netbox_client_ruby/api/extras/journal_entries.rb
netbox-client-ruby-0.7.1 lib/netbox_client_ruby/api/extras/journal_entries.rb
netbox-client-ruby-0.7.0 lib/netbox_client_ruby/api/extras/journal_entries.rb
netbox-client-ruby-0.6.0 lib/netbox_client_ruby/api/extras/journal_entries.rb
netbox-client-ruby-0.5.7 lib/netbox_client_ruby/api/extras/journal_entries.rb
netbox-client-ruby-0.5.6 lib/netbox_client_ruby/api/extras/journal_entries.rb