Skip to content

Instantly share code, notes, and snippets.

@pdougall1
Created November 3, 2017 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdougall1/5655c50c9d03c29e326fab90ea13a7e7 to your computer and use it in GitHub Desktop.
Save pdougall1/5655c50c9d03c29e326fab90ea13a7e7 to your computer and use it in GitHub Desktop.
require 'delegate'
module Queries
class SomeQuery < SimpleDelegator
def initialize
super query_hash
end
private
def query_hash
{
hash: :stuff_here
}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment