Class: YoutrackOnRails::Responses::EnumerationResponse

Inherits:
CollectionResponse show all
Defined in:
lib/youtrack_on_rails/responses/enumeration_response.rb

Direct Known Subclasses

GetVersionBundle

Constant Summary

Constants inherited from Base

Base::SUCCESSFUL_RESPONSE_CODES

Instance Attribute Summary

Attributes inherited from Base

#code, #http_response, #xml

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(&block) ⇒ Object



4
5
6
7
8
# File 'lib/youtrack_on_rails/responses/enumeration_response.rb', line 4

def process(&block)
  super do |hash, enumeration_node|
    hash['value'] = enumeration_node.text
  end
end