Method: JIRA::Base.find

Defined in:
lib/jira/base.rb

.find(client, key, options = {}) ⇒ Object

Finds and retrieves a resource with the given ID.



104
105
106
107
108
109
# File 'lib/jira/base.rb', line 104

def self.find(client, key, options = {})
  instance = self.new(client, options)
  instance.attrs[key_attribute.to_s] = key
  instance.fetch
  instance
end