Class: YoutrackOnRails::Responses::GetCustomField
- Inherits:
-
ResourceResponse
- Object
- Base
- CollectionResponse
- ResourceResponse
- YoutrackOnRails::Responses::GetCustomField
- Defined in:
- lib/youtrack_on_rails/responses/get_custom_field.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/get_custom_field.rb', line 4 def process super do |hash, issue_node| attributes = issue_node.xpath('param').map { |field| field['name'] } attributes.each_with_object(hash) do |attribute, _hash| _hash[attribute.downcase] = issue_node.xpath("param[@name='#{attribute}']").first['value'] end end end |