Sha256: 6db84a241acbb26403ee6b649b3e9edfdded3f098a2c4bf4ea358052a479fd51
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
houston-core-0.5.0.beta1 | app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb |