Sha256: a089af658c27ffccad7023c82440201710a3599075b0f3d23857eace2afbf83c

Contents?: true

Size: 415 Bytes

Versions: 9

Compression:

Stored size: 415 Bytes

Contents

module Outliers
  class Resource

    attr_reader :source

    def self.key
      'name'
    end

    def self.verifications
      []
    end

    def initialize(source)
      @source = source
      @logger = Outliers.logger
    end

    def id
      @source.send self.class.key
    end

    def method_missing(method)
      @source.send method
    end

    private

    def logger
      @logger
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
outliers-0.5.0 lib/outliers/resource.rb
outliers-0.5.0.beta3 lib/outliers/resource.rb
outliers-0.5.0.beta2 lib/outliers/resource.rb
outliers-0.5.0.beta1 lib/outliers/resource.rb
outliers-0.3.3 lib/outliers/resource.rb
outliers-0.3.2 lib/outliers/resource.rb
outliers-0.3.1 lib/outliers/resource.rb
outliers-0.3.0 lib/outliers/resource.rb
outliers-0.2.0 lib/outliers/resource.rb