class Kentico::Kontent::Delivery::Responses::DeliveryTaxonomyResponse
The response of a successful query for a taxonomy group. See github.com/Kentico/kontent-delivery-sdk-ruby#taxonomy
Public Class Methods
new(headers, body)
click to toggle source
Calls superclass method
# File lib/delivery/responses/delivery_taxonomy_response.rb, line 21 def initialize(headers, body) @response = JSON.parse(body) super 200, "Success, '#{taxonomy.system.codename}' returned", headers, JSON.generate(@response) end
Public Instance Methods
taxonomy()
click to toggle source
Parses the response from a Kentico::Kontent::Delivery::DeliveryClient.taxonomy
call.
# File lib/delivery/responses/delivery_taxonomy_response.rb, line 16 def taxonomy @taxonomy unless @taxonomy.nil? @taxonomy = Kentico::Kontent::Delivery::TaxonomyGroup.new(@response) end