Sha256: 060058445832cbd258a773ebc8a27eab452001f9d70eea7c61704222822050e2
Contents?: true
Size: 639 Bytes
Versions: 1
Compression:
Stored size: 639 Bytes
Contents
module Peaty class Task < Base def complete? self.attributes["complete"] == "true" end def position self.attributes["position"].to_i end def story Story.with_connection(self.class.connection).find(self.story_id) end class << self def element "task" end def collection_path(options = {}) "/projects/%i/stories/%i/tasks" % [options[:project_id].to_i, options[:story_id].to_i] end def member_path(id, options = {}) "/projects/%i/stories/%i/tasks/%i" % [options[:project_id].to_i, options[:story_id].to_i, id] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peaty-0.6.0.beta1 | lib/peaty/task.rb |