Created
November 10, 2011 15:34
-
-
Save nicksieger/1355138 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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