# File lib/jira/base.rb, line 95 def self.all(client, options = {}) response = client.get(collection_path(client)) json = parse_json(response.body) if collection_attributes_are_nested json = json[endpoint_name.pluralize] end json.map do |attrs| self.new(client, {:attrs => attrs}.merge(options)) end end