Sha256: eaf815d67e3f8d1d85b19dfaebfc3b92c7d62e17842a9324ea3a6d176e0e6d08
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 Bytes
Contents
module Travis module Notifications class Webhook class Payload attr_reader :object def initialize(object) @object = object end def to_hash render(:hash) end def render(format) Travis::Renderer.send(format, object, :type => :webhook, :template => template, :base_dir => base_dir) end def template object.class.name.underscore end def base_dir File.expand_path('../views', __FILE__) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
travis-core-0.0.1 | lib/travis/notifications/webhook/payload.rb |