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, = {}) instance = self.new(client, ) instance.attrs[key_attribute.to_s] = key instance.fetch instance end |