Sha256: 6f46d63f70a0ca4e0dfe678a52b5c7e6554be8c8a92668c51c508301c6eec8a7

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

module NedbankApi
  module Models
    class BaseModel < Delegator
      attr_accessor :initialized_at

      def initialize(obj)
        super
        @delegate_sd_obj = obj
        self.initialized_at = Time.now
      end

      def __getobj__
        @delegate_sd_obj
      end

      def __setobj__(obj)
        @delegate_sd_obj = obj
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nedbank_api-0.2.5 lib/nedbank_api/models/base_model.rb
nedbank_api-0.2.2 lib/nedbank_api/models/base_model.rb