Skip to content

Instantly share code, notes, and snippets.

@nicksieger
Created November 10, 2011 15:34
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 nicksieger/1355138 to your computer and use it in GitHub Desktop.
Save nicksieger/1355138 to your computer and use it in GitHub Desktop.
module Travis
module Notifications
class Pusher
class Payload
def to_hash
render(:hash)
end
def render(*args)
puts "Pusher::Payload#render"
end
end
end
class Worker
class Payload
def to_hash
render(:hash)
end
def render(*args)
puts "Worker::Payload#render"
end
end
def self.payload_for
Travis::Notifications::Worker::Payload.new.to_hash
end
end
end
end
Travis::Notifications::Worker.payload_for
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment