Sha256: 2cc23a37c7219a26bfcf8bf663ebb3cc8020d848b4c23108c2b69106beb9e11f

Contents?: true

Size: 599 Bytes

Versions: 1

Compression:

Stored size: 599 Bytes

Contents

require 'evertils/common/authentication'

module Evertils
  module Common
    module Manager
      class Base

        attr_accessor :api

        #
        # @since 0.3.0
        def initialize
          @api = Authentication.instance

          self
        end

        #
        # @since 0.3.0
        def has_required_fields(hash, required)
          hash.keys.each do |key|
            required.include? key
          end
        end

        #
        # @since 0.3.0
        def deprecation_notice(version)
          puts "Deprecated as of #{version}"
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
evertils-common-0.3.0 lib/evertils/common/manager.rb