Class: Issues::Repo

Inherits:
Object
  • Object
show all
Includes:
Virtus
Defined in:
lib/issues/repo.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.find(handle) ⇒ Object



8
9
10
11
# File 'lib/issues/repo.rb', line 8

def self.find(handle)
  , name = handle.split('/')
  new(name: name, owner: { login:  })
end

Instance Method Details

#handleObject



17
18
19
# File 'lib/issues/repo.rb', line 17

def handle
  "#{owner.}/#{name}"
end

#milestonesObject



13
14
15
# File 'lib/issues/repo.rb', line 13

def milestones
  Milestone.all(self)
end