Class: YoutrackOnRails::Responses::ListIssues
- Inherits:
-
CollectionResponse
- Object
- Base
- CollectionResponse
- YoutrackOnRails::Responses::ListIssues
- Defined in:
- lib/youtrack_on_rails/responses/list_issues.rb
Constant Summary
Constants inherited from Base
Base::SUCCESSFUL_RESPONSE_CODES
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#cookie, #errors, #initialize, #success?
Constructor Details
This class inherits a constructor from YoutrackOnRails::Responses::Base
Instance Method Details
#process ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/youtrack_on_rails/responses/list_issues.rb', line 4 def process(*) super do |hash, issue_node| attributes = issue_node.xpath('field').map{|field| field['name']} attributes.each_with_object(hash) do |attribute, _hash| _hash[attribute.downcase] = issue_node.xpath("field[@name='#{attribute}']/value").text end end end |