class Zendesk2::UpdateBrand

Public Instance Methods

brand_id() click to toggle source
# File lib/zendesk2/update_brand.rb, line 9
def brand_id
  params.fetch('brand').fetch('id')
end
brand_params() click to toggle source
# File lib/zendesk2/update_brand.rb, line 13
def brand_params
  Cistern::Hash.slice(params.fetch('brand'), *Zendesk2::CreateTicketForm.accepted_attributes)
end
mock() click to toggle source
# File lib/zendesk2/update_brand.rb, line 17
def mock
  mock_response('brand' => find!(:brands, brand_id).merge!(brand_params))
end