Repository URL to install this package:
Version:
0.9.3 ▾
|
# frozen_string_literal: true
module Lobbyist
module V2
class CategoryDefaultFrontTemplate < Lobbyist::V2::Base
attr_accessor :id, :category_id, :image_filename
attr_accessor :message_position, :content, :status
attr_accessor :tags, :communication_campaigns, :image_urls
attr_accessor :offset
def self.list(params = {})
create_collection_from_response(get('/v2/category-default-front-templates.json', params))
end
def self.update(id, params = {})
response = put("/v2/category-default-front-templates/#{id}.json", category_default_front_template: params)
create_from_response(response)
end
def self.find(id, params = {})
response = get("/v2/category-default-front-templates/#{id}.json", params)
create_from_response(response)
end
def self.communication_campaigns(id, params = {})
response = get("/v2/category-default-front-templates/#{id}/communication_campaigns.json", params)
create_collection_from_response(response)
end
end
end
end