Sha256: 68b12516b8f3afde0f61eafb3f91524d37065dd110edf6174db70a19d125facc
Contents?: true
Size: 775 Bytes
Versions: 7
Compression:
Stored size: 775 Bytes
Contents
module Pomo class Task def github? false end end class GithubTask < Task ## # Username. attr_accessor :username ## # Project name. attr_accessor :project ## # Labels array. attr_accessor :labels ## # Issue number. attr_accessor :number ## # Initialize with _name_ and _options_. def initialize name = nil, options = {} super options.each { |k,v| send :"#{k}=", v } end ## # Check if the task is a github issue. def github? true end ## # Absolute URI to github issue. def uri "http://github.com/#{username}/#{project}/issues#issue/#{number}" end end end
Version data entries
7 entries across 7 versions & 1 rubygems