Sha256: 85a9f7ab1bc8f9c46ebf6e67cca175ebd84ed25a3aa3fdedd3eec1f48bea3198

Contents?: true

Size: 971 Bytes

Versions: 17

Compression:

Stored size: 971 Bytes

Contents

module Houston
  module Adapters
    module TicketTracker
      class UnfuddleAdapter
        class Milestone


          def initialize(connection, attributes)
            @connection       = connection
            @raw_attributes   = attributes
            @remote_id        = attributes["id"]
            @name             = attributes["title"]
          end

          attr_reader :raw_attributes,
                      :remote_id,
                      :name

          def attributes
            { remote_id:      remote_id,
              name:           name }
          end


          def update_name!(name)
            Houston.benchmark title: "Update Unfuddle Milestone" do
              milestone = ::Unfuddle::Milestone.new(raw_attributes)
              milestone.update_attribute("title", name)
            end
          end


        private

          attr_reader :connection
          alias :unfuddle :connection

        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
houston-core-0.8.0.pre app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.7.0 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.7.0.beta4 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.7.0.beta3 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.7.0.beta2 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.7.0.beta app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.6.3 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.6.2 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.6.1 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.6.0 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.5.6 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.5.5 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.5.4 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.5.3 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.5.2 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.5.1 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb
houston-core-0.5.0 app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb