Sha256: 10ccec69e20ec707a679cfe33845a9f02a2320cd4739d3bbec54c0a0286db33d

Contents?: true

Size: 252 Bytes

Versions: 2

Compression:

Stored size: 252 Bytes

Contents

class Herder
  module Interactable
    def interactions
      Interactable::Query.new(type: klass, id: id)
    end

    protected

    def klass
      @klass ||= self.class.name.split("::").last
    end
  end
end

require_relative "interactable/query"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
herder-0.0.5 lib/herder/interactable.rb
herder-0.0.4 lib/herder/interactable.rb