class Rlaunchpadlib::ProjectGroup
Attributes
group[RW]
overview_data[RW]
Public Class Methods
new(group)
click to toggle source
# File lib/rlaunchpadlib/project_group.rb, line 11 def initialize(group) @group = group @client = Rlaunchpadlib::Client.new end
Public Instance Methods
branches()
click to toggle source
# File lib/rlaunchpadlib/project_group.rb, line 32 def branches @client.get(@group, 'getBranches') end
bugs()
click to toggle source
# File lib/rlaunchpadlib/project_group.rb, line 24 def bugs @client.get(@group, 'searchTasks') end
merge_proposals()
click to toggle source
# File lib/rlaunchpadlib/project_group.rb, line 28 def merge_proposals @client.get(@group, 'getMergeProposals') end
method_missing(name, *args, &block)
click to toggle source
I’m nuts so lets patch method missing.
Calls superclass method
# File lib/rlaunchpadlib/project_group.rb, line 37 def method_missing(name, *args, &block) overview.has_key?(name.to_s) ? overview[name.to_s] : super end
overview()
click to toggle source
# File lib/rlaunchpadlib/project_group.rb, line 16 def overview if @overview_data.nil? @client.get(@group) else @overview_data end end