Class: Bugly::Issue

Instance Attribute Summary

Attributes inherited from BuglyObject

#api_base, #api_key

Instance Method Summary collapse

Methods included from APIOperations::List

included

Methods included from APIOperations::Update

#save

Methods included from APIOperations::Delete

#delete

Methods included from APIOperations::Create

included

Methods inherited from APIResource

#refresh, retrieve, #url, url

Methods inherited from BuglyObject

#[], #[]=, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from Bugly::BuglyObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Bugly::BuglyObject

Instance Method Details

#commentsObject



338
339
340
341
# File 'lib/bugly.rb', line 338

def comments
  response, api_key = Bugly.request(:get, "#{url}/comments", @api_key)
  Util.convert_to_bugly_object(response, api_key)
end

#commitsObject



344
345
346
# File 'lib/bugly.rb', line 344

def commits
  Changeset.all({ :issue_id => id }, @api_key)
end

#dependentsObject



358
359
360
361
# File 'lib/bugly.rb', line 358

def dependents
  response, api_key = Bugly.request(:get, "#{url}/dependents", @api_key)
  Util.convert_to_bugly_object(response, api_key)
end

#duplicatesObject



363
364
365
366
# File 'lib/bugly.rb', line 363

def duplicates
  response, api_key = Bugly.request(:get, "#{url}/duplicates", @api_key)
  Util.convert_to_bugly_object(response, api_key)
end

#labelsObject

def labels

Label.all({ :issue_id => id }, @api_key)

end



333
334
335
336
# File 'lib/bugly.rb', line 333

def labels
  response, api_key = Bugly.request(:get, "#{url}/labels", @api_key)
  Util.convert_to_bugly_object(response, api_key)
end

#prerequisitesObject



353
354
355
356
# File 'lib/bugly.rb', line 353

def prerequisites
  response, api_key = Bugly.request(:get, "#{url}/prerequisites", @api_key)
  Util.convert_to_bugly_object(response, api_key)
end


368
369
370
371
# File 'lib/bugly.rb', line 368

def related
  response, api_key = Bugly.request(:get, "#{url}/related", @api_key)
  Util.convert_to_bugly_object(response, api_key)
end

#watchersObject



348
349
350
351
# File 'lib/bugly.rb', line 348

def watchers
  response, api_key = Bugly.request(:get, "#{url}/watchers", @api_key)
  Util.convert_to_bugly_object(response, api_key)
end