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

Version Path
octopolo-1.12.0 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.11.4 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.11.3 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.11.1 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.11.0 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.9.0 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.8.1 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.8.0 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.7.1 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.7.0 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.6.0 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.5.3 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.5.2 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.5.1 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.5.0 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.4.0 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.3.0 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.2.1 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.2.0 lib/octopolo/pivotal/story_commenter.rb
octopolo-1.1.1 lib/octopolo/pivotal/story_commenter.rb