stefan-kolb/nucleus

View on GitHub
lib/nucleus_api/persistence/models/adapter_index_entry.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Nucleus
  #
  # @author Cedric Roeck (cedric.roeck@gmail.com)
  # @since 0.1.0
  class AdapterIndexEntry
    include Kwalify::Util::HashLike

    attr_accessor :adapter_clazz
    attr_accessor :id
    attr_accessor :url

    def initialize(hash = nil)
      return if hash.nil?
      @id = hash['id']
      @url = hash['url']
      @adapter_clazz = hash['adapter_clazz']
    end
  end
end