Sha256: e8568f00cd71a56a0aba3cbf0e42a6780a6da9b6998fb9334e16d92cf7b594f1
Contents?: true
Size: 402 Bytes
Versions: 42
Compression:
Stored size: 402 Bytes
Contents
require_relative '../pivotal' module Octopolo module Pivotal class StoryCommenter attr_accessor :story attr_accessor :comment def initialize(story_id, comment) self.story = Pivotal::Client.new.find_story(story_id) self.comment = comment end def perform story.notes.new(:owner => story, :text => comment).create end end end end
Version data entries
42 entries across 42 versions & 1 rubygems