bigcommerce/bigcommerce-api-ruby

View on GitHub
lib/bigcommerce/resources/content/blog_tag.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# Blog Tag
# Index of tags used on the store's blog.
# https://developer.bigcommerce.com/api/stores/v2/blog/tags

module Bigcommerce
  class BlogTag < Resource
    include Bigcommerce::Request.new 'blog/tags'

    property :tag
    property :post_ids

    def self.all(params = {})
      get path.build, params
    end
  end
end